fix lint errors
This commit is contained in:
parent
84df0714d8
commit
b9eaf906e7
22 changed files with 55 additions and 49 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ export interface BroadcastTypes {
|
|||
}
|
||||
|
||||
export interface UserStreamTypes {
|
||||
terminate: {};
|
||||
terminate: Record<string, unknown>;
|
||||
followChannel: Channel;
|
||||
unfollowChannel: Channel;
|
||||
updateUserProfile: UserProfile;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue