Skip to content

Commit a3cca8f

Browse files
committed
update
1 parent dce6fda commit a3cca8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/server/test/adapter/tanstack-start.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ model M {
8989
const db = await createTestClient(model);
9090
const options: TanStackStartOptions<SchemaDef> = {
9191
getClient: () => db,
92-
apiHandler: new RPCApiHandler({ schema: db.schema }),
92+
apiHandler: new RPCApiHandler({ schema: db.$schema }),
9393
};
9494

9595
const client = await makeTestClient('/m/create', options)
@@ -179,7 +179,7 @@ model M {
179179
const db = await createPolicyTestClient(model);
180180
const options: TanStackStartOptions<SchemaDef> = {
181181
getClient: () => db,
182-
apiHandler: new RPCApiHandler({ schema: db.schema }),
182+
apiHandler: new RPCApiHandler({ schema: db.$schema }),
183183
};
184184

185185
const createForbidden = await makeTestClient('/m/create', options)
@@ -233,7 +233,7 @@ model M {
233233

234234
const options: TanStackStartOptions<SchemaDef> = {
235235
getClient: () => db,
236-
apiHandler: new RestApiHandler({ endpoint: 'http://localhost/api', schema: db.schema }),
236+
apiHandler: new RestApiHandler({ endpoint: 'http://localhost/api', schema: db.$schema }),
237237
};
238238

239239
const create = await makeTestClient('/m', options)

0 commit comments

Comments
 (0)