fix compose.create not returning result

when calling the compose create api, a empty result was returned
This commit is contained in:
ksollner 2024-11-25 14:42:05 +01:00 committed by GitHub
parent ac33b6b6a1
commit afe9b3c113
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -79,6 +79,8 @@ export const composeRouter = createTRPCRouter({
if (ctx.user.rol === "user") {
await addNewService(ctx.user.authId, newService.composeId);
}
return newService;
} catch (error) {
throw error;
}