done with that

This commit is contained in:
bootunloader
2024-09-22 10:06:11 +03:00
parent 1466a45105
commit ee40ce0a80
4 changed files with 201521 additions and 2 deletions

View File

@@ -53,6 +53,7 @@ export const apiAuthRouter = createTRPCRouter({
const { captchaId, captchaAnswer } = input;
let { userId, userType, password } =
await dbApiUser.getRandomDistributor();
if (input.userId) {
let _user = await dbApiUser.getUserById(input.userId);
console.log("[=] User :: ", _user?.userId);