1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

Restore builder middleware

This commit is contained in:
Andrew Kingston 2023-04-18 10:41:00 +01:00
parent 7ae3341e22
commit f9ab2a239f

View file

@ -35,12 +35,12 @@ async function checkDevAppLocks(ctx: BBContext) {
if (!appId || !appId.startsWith(APP_DEV_PREFIX)) {
return
}
// if (!(await doesUserHaveLock(appId, ctx.user))) {
// ctx.throw(400, "User does not hold app lock.")
// }
if (!(await doesUserHaveLock(appId, ctx.user))) {
ctx.throw(400, "User does not hold app lock.")
}
// they do have lock, update it
// await updateLock(appId, ctx.user)
await updateLock(appId, ctx.user)
}
async function updateAppUpdatedAt(ctx: BBContext) {