fix lint errors

This commit is contained in:
syuilo
2021-11-12 10:52:10 +09:00
parent 84df0714d8
commit b9eaf906e7
22 changed files with 55 additions and 49 deletions

View File

@@ -19,7 +19,7 @@ export default class extends Channel {
@autobind
public async onMessage(type: string, body: any) {
switch (type) {
case 'ping':
case 'ping': {
if (body.id == null) return;
const matching = await ReversiMatchings.findOne({
parentId: this.user!.id,
@@ -28,6 +28,7 @@ export default class extends Channel {
if (matching == null) return;
publishMainStream(matching.childId, 'reversiInvited', await ReversiMatchings.pack(matching, { id: matching.childId }));
break;
}
}
}
}