feat: add task workflow and asset downloads
This commit is contained in:
1 parent
f9c3393f84
commit
63e62d444c
61 files changed
+2773
-2181
No files matched your search
@@ -0,0 +1,9 @@
|
||||
import { jsonError } from "@/lib/server/api";
|
||||
import { PublicApiAuthError } from "@/lib/server/public-api-auth";
|
||||
import { PublicApiConflictError } from "@/lib/server/public-api-jobs";
|
||||
|
||||
export function publicApiError(error: unknown) {
|
||||
if (error instanceof PublicApiAuthError) return jsonError(error.message, error.status);
|
||||
if (error instanceof PublicApiConflictError) return jsonError(error.message, error.status);
|
||||
return jsonError(error);
|
||||
}
|
||||
Reference in new issue
Block a user