mirror of
https://github.com/fosrl/pangolin.git
synced 2025-09-01 07:20:06 +02:00
Working on delete
This commit is contained in:
parent
d649ffe177
commit
cb9d1b5f88
5 changed files with 113 additions and 24 deletions
|
@ -27,7 +27,6 @@ export async function verifyUserIsOrgOwner(
|
|||
)
|
||||
);
|
||||
}
|
||||
|
||||
try {
|
||||
if (!req.userOrg) {
|
||||
const res = await db
|
||||
|
@ -56,6 +55,8 @@ export async function verifyUserIsOrgOwner(
|
|||
)
|
||||
);
|
||||
}
|
||||
|
||||
return next();
|
||||
} catch (e) {
|
||||
return next(
|
||||
createHttpError(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue