From 19377c5eec00f6feac306f4191a5bd34e4fa43f5 Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Mon, 25 Aug 2025 18:40:27 -0400 Subject: [PATCH] fix type of getClientGroup --- src/replicache/utils.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/replicache/utils.ts b/src/replicache/utils.ts index baba44f0..1887dc9b 100644 --- a/src/replicache/utils.ts +++ b/src/replicache/utils.ts @@ -4,15 +4,14 @@ import type { Fact } from "."; import { replicache_clients } from "drizzle/schema"; import type { Attribute, FilterAttributes } from "./attributes"; import { ReadTransaction, WriteTransaction } from "replicache"; +import { PgTransaction } from "drizzle-orm/pg-core"; export function FactWithIndexes(f: Fact) { let indexes: { eav: string; - aev: string; vae?: string; } = { eav: `${f.entity}-${f.attribute}-${f.id}`, - aev: `${f.attribute}-${f.entity}-${f.id}`, }; if ( f.data.type === "reference" || @@ -24,7 +23,7 @@ export function FactWithIndexes(f: Fact) { } export async function getClientGroup( - db: PostgresJsDatabase, + db: PgTransaction, clientGroupID: string, ): Promise<{ [clientID: string]: number }> { let data = await db -- 2.51.2