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