From f9ab2a239fbbe52eb59846bdcc553e0d1f8dc360 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 18 Apr 2023 10:41:00 +0100 Subject: [PATCH] Restore builder middleware --- packages/server/src/middleware/builder.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) {