mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-25 06:01:10 +10:00
feat: partial user platform support + statusMessage -> message
This commit is contained in:
@ -15,13 +15,13 @@ export default defineEventHandler(async (h3) => {
|
||||
});
|
||||
|
||||
if (!company)
|
||||
throw createError({ statusCode: 400, statusMessage: "Invalid company id" });
|
||||
throw createError({ statusCode: 400, message: "Invalid company id" });
|
||||
|
||||
const result = await handleFileUpload(h3, {}, ["internal:read"], 1);
|
||||
if (!result)
|
||||
throw createError({
|
||||
statusCode: 400,
|
||||
statusMessage: "File upload required (multipart form)",
|
||||
message: "File upload required (multipart form)",
|
||||
});
|
||||
|
||||
const [ids, , pull, dump] = result;
|
||||
@ -29,7 +29,7 @@ export default defineEventHandler(async (h3) => {
|
||||
if (!id)
|
||||
throw createError({
|
||||
statusCode: 400,
|
||||
statusMessage: "Upload at least one file.",
|
||||
message: "Upload at least one file.",
|
||||
});
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user