File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/api/services/auth Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11import crypto from "crypto" ;
22import jwt from "jsonwebtoken" ;
3- import { useSocketEvents } from "socket-call-server" ;
3+ import { Errorable , useSocketEvents } from "socket-call-server" ;
44
55import { prismaClient } from "~prisma-schemas/schemas/dm/client" ;
66import { prismaClient as prismaDm } from "~prisma-schemas/schemas/dm/client" ;
@@ -113,7 +113,7 @@ const listenEvents = () => ({
113113 password : string ;
114114 email : string ;
115115 } ) =>
116- new Promise ( async ( resolve ) => {
116+ new Promise < Errorable < string , 'Bad request' > > ( async ( resolve ) => {
117117 console . log ( `signup with user ${ input . username } ` ) ;
118118 await prismaDm . $transaction ( async ( transaction ) => {
119119 const scopedError = await validate ( transaction , input , [
You can’t perform that action at this time.
0 commit comments