MCPcopy Create free account
hub / github.com/clientdb/clientdb / fetchSyncDelta

Function fetchSyncDelta

engine/server/fetchSyncDelta.ts:27–39  ·  view source on GitHub ↗
(
  context: SyncRequestContext
)

Source from the content-addressed store, hash-verified

25 | EntityCreateRequest;
26
27export async function fetchSyncDelta(
28 context: SyncRequestContext
29): Promise<EntityDelta[]> {
30 const { db, schema, lastSyncId } = context;
31
32 const syncRequests = await db
33 .table("sync")
34 .select("*")
35 .where("id", ">", lastSyncId)
36 .andWhere("user_id", "=", context.userId);
37
38 return syncRequests;
39}

Callers 1

createSyncServerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected