From f31eb0eb4dafe0ec267992d3e9c3d865358886f1 Mon Sep 17 00:00:00 2001 From: Bradley Ayers Date: Wed, 3 Jul 2024 14:49:34 +0800 Subject: [PATCH] Update data.ts to return existing client ID --- server/src/data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/data.ts b/server/src/data.ts index 3010acb..742839f 100644 --- a/server/src/data.ts +++ b/server/src/data.ts @@ -302,7 +302,7 @@ export async function getClient( clientGroupID: string, ): Promise { const {rows} = await executor( - `select clientgroupid, lastmutationid from replicache_client where id = $1`, + `select id, clientgroupid, lastmutationid from replicache_client where id = $1`, [clientID], ); if (!rows || rows.length === 0)