From d3b62980f773cdbba5aa87d39c9fe31d7fd44877 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 18 Aug 2018 03:36:13 +0900 Subject: [PATCH] Fix #2298 --- src/server/api/private/signup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/api/private/signup.ts b/src/server/api/private/signup.ts index 2bf56a979..79e5e6ec4 100644 --- a/src/server/api/private/signup.ts +++ b/src/server/api/private/signup.ts @@ -34,7 +34,7 @@ export default async (ctx: Koa.Context) => { const meta = await Meta.findOne({}); - if (meta.disableRegistration) { + if (meta && meta.disableRegistration) { if (invitationCode == null || typeof invitationCode != 'string') { ctx.status = 400; return;