forked from FoundKeyGang/FoundKey
Fix #2298
This commit is contained in:
parent
cd09fa5a28
commit
9f8d21b2bc
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ export default async (ctx: Koa.Context) => {
|
||||||
|
|
||||||
const meta = await Meta.findOne({});
|
const meta = await Meta.findOne({});
|
||||||
|
|
||||||
if (meta.disableRegistration) {
|
if (meta && meta.disableRegistration) {
|
||||||
if (invitationCode == null || typeof invitationCode != 'string') {
|
if (invitationCode == null || typeof invitationCode != 'string') {
|
||||||
ctx.status = 400;
|
ctx.status = 400;
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue