done with that
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -62,6 +62,11 @@
|
||||
toast.success("Data posted successfully");
|
||||
},
|
||||
onError: (e) => {
|
||||
// @ts-ignore
|
||||
if (e.detail) {
|
||||
// @ts-ignore
|
||||
return toast.error(e.detail);
|
||||
}
|
||||
console.error(e);
|
||||
toast.error("Error posting data");
|
||||
},
|
||||
@@ -543,8 +548,7 @@
|
||||
<div class="w-full max-w-xs">
|
||||
<Input
|
||||
value={copyCounts
|
||||
? (copyCounts[lc ?? "message"] ??
|
||||
"")
|
||||
? copyCounts[lc ?? "message"] ?? ""
|
||||
: ""}
|
||||
label={"Copy count"}
|
||||
placeholder={`For ${lc ?? ""} message`}
|
||||
|
||||
Reference in New Issue
Block a user