Skip to content

Commit ef77b50

Browse files
committed
api: Fix typing
1 parent 1730a32 commit ef77b50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/api/services/auth/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import crypto from "crypto";
22
import jwt from "jsonwebtoken";
3-
import { useSocketEvents } from "socket-call-server";
3+
import { Errorable, useSocketEvents } from "socket-call-server";
44

55
import { prismaClient } from "~prisma-schemas/schemas/dm/client";
66
import { 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, [

0 commit comments

Comments
 (0)