From 79515ccc8b62ab0a95efb7b2042f4865a1d3f897 Mon Sep 17 00:00:00 2001 From: Ajay Date: Sun, 23 Jul 2023 23:45:02 -0400 Subject: [PATCH] Add unlocking to long title error --- src/routes/postBranding.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/postBranding.ts b/src/routes/postBranding.ts index c4c7059..73a4c5d 100644 --- a/src/routes/postBranding.ts +++ b/src/routes/postBranding.ts @@ -53,6 +53,7 @@ export async function postBranding(req: Request, res: Response) { const voteType = 1; if (title && !isVip && title.title.length > config.maxTitleLength) { + lock.unlock(); res.status(400).send("Your title is too long. Please keep titles concise."); return; }