INNER CODE UNIT · TypeScript

otherActiveDevices

raj457036/CopyCat-Clipboard · supabase/functions/manage_sync_devices/index.ts:104

  const otherActiveDevices = activeDevices.filter((d) => d.deviceId !== deviceId);

  if (otherActiveDevices.length >= limit) {
    return jsonResponse({
      allowed: false,
      limit,
      activeCount: activeDevices.length,
      devices: normalizeDevices(activeDevices),
    });
  }

  const { error: upsertError } = await client
    .from(DEVICES_TABLE)
    .upsert(
      {
        userId,
        deviceId,
        platform,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…