From 9f8d21b2bc0d3816fc82fb24e41580ae86cf31ac 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 2bf56a9791..79e5e6ec48 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;