Restore builder middleware

This commit is contained in:
Andrew Kingston 2023-04-18 10:41:00 +01:00
parent 7ae3341e22
commit f9ab2a239f
1 changed files with 4 additions and 4 deletions

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) {