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

186932
dealers.json Normal file

File diff suppressed because it is too large Load Diff

14582
distributors.json Normal file

File diff suppressed because it is too large Load Diff

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);

View File

@@ -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`}