INNER CODE UNIT · TypeScript

clipIds

raj457036/CopyCat-Clipboard · supabase/functions/clean_expired_clips/index.ts:66

        const clipIds = clips.data.map((c) => c.id);

        if (gdriveFileIds.length > 0 && accessToken) {
          await batchDeleteDriveFiles(gdriveFileIds, accessToken);
        }

        if (clipIds.length > 0) {
          await client.from("clipboard_items").delete().in("id", clipIds);
        }

        console.info("Finished cleanup for User Id: ", id);

        // break when no more data is available
        if (!clips.data || clips.data.length < 100) {
          break;
        }
        ciOffset += 100;
      }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…