mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
Fix #2298
This commit is contained in:
parent
5f5f6c7cd5
commit
d3b62980f7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user