This commit is contained in:
bootunloader
2024-09-22 13:30:30 +03:00
parent 76d13366c2
commit 839f69a44b

View File

@@ -105,16 +105,12 @@ export const postDataApiRouter = createTRPCRouter({
.input(z.object({ yes: zPostDataFilters, cachedDataKey: z.string() }))
.mutation(async ({ input }) => {
if (await hasPostSession()) {
const m =
"Already posting data, please wait for the current session to finish";
return {
ok: false,
detail:
"Already posting data, please wait for the current session to finish",
errors: [
{
message:
"Already posting data, please wait for the current session to finish",
},
] as ServerError,
detail: m,
errors: [{ message: m }] as ServerError,
};
}
const date = input.yes.date;