diff --git a/packages/server/src/middleware/builder.ts b/packages/server/src/middleware/builder.ts index ad89d0c658..5174f618a0 100644 --- a/packages/server/src/middleware/builder.ts +++ b/packages/server/src/middleware/builder.ts @@ -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) {