Restore builder middleware
This commit is contained in:
parent
7ae3341e22
commit
f9ab2a239f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue