File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ export function Neo4jAdapter(session: Session): Adapter {
130130
131131 return {
132132 async createUser ( data ) {
133- const user = { id : crypto . randomUUID ( ) , ... data }
133+ const user = { ... data , id : crypto . randomUUID ( ) }
134134 await write ( `CREATE (u:User $data)` , user )
135135 return user
136136 } ,
Original file line number Diff line number Diff line change @@ -311,7 +311,6 @@ export function TypeORMAdapter(
311311 const m = await getManager ( c )
312312 await m . connection . close ( )
313313 } ,
314- // @ts -expect-error
315314 createUser : async ( data ) => {
316315 const m = await getManager ( c )
317316 const user = await m . save ( UserEntityName , data )
@@ -382,7 +381,11 @@ export function TypeORMAdapter(
382381 } ,
383382 async updateSession ( data ) {
384383 const m = await getManager ( c )
385- await m . update ( SessionEntityName , { sessionToken : data . sessionToken } , data )
384+ await m . update (
385+ SessionEntityName ,
386+ { sessionToken : data . sessionToken } ,
387+ data
388+ )
386389 // TODO: Try to return?
387390 return null
388391 } ,
You can’t perform that action at this time.
0 commit comments