mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-19 19:21:12 +10:00
feat: partial user platform support + statusMessage -> message
This commit is contained in:
@ -9,7 +9,7 @@ export default defineEventHandler(async (h3) => {
|
||||
if (!companyId)
|
||||
throw createError({
|
||||
statusCode: 400,
|
||||
statusMessage: "Missing gameId in route params (somehow...?)",
|
||||
message: "Missing gameId in route params (somehow...?)",
|
||||
});
|
||||
|
||||
const company = await prisma.company.findUnique({
|
||||
@ -17,7 +17,7 @@ export default defineEventHandler(async (h3) => {
|
||||
});
|
||||
|
||||
if (!company)
|
||||
throw createError({ statusCode: 404, statusMessage: "Company not found" });
|
||||
throw createError({ statusCode: 404, message: "Company not found" });
|
||||
|
||||
return { company };
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user