File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/server/test/adapter Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments