diff --git a/src/schema/definitions/battleStatus.ts b/src/schema/definitions/battleStatus.ts index 0502c82..79fba24 100644 --- a/src/schema/definitions/battleStatus.ts +++ b/src/schema/definitions/battleStatus.ts @@ -14,14 +14,15 @@ export const battleStatus = Nullable( Type.Object({ isSpectator: Type.Literal(true), }), - Type.Ref(spectator) + Type.Ref(spectator), ]), Type.Intersect([ Type.Object({ isSpectator: Type.Literal(false), }), - Type.Ref(player) + Type.Ref(player), ]), ]), - ]), { $id: "battleStatus" } -); \ No newline at end of file + ]), + { $id: "battleStatus" } +); diff --git a/src/schema/definitions/user.ts b/src/schema/definitions/user.ts index 1a4931f..535bdca 100644 --- a/src/schema/definitions/user.ts +++ b/src/schema/definitions/user.ts @@ -19,7 +19,7 @@ export const user = Type.Object( Type.Literal("playing"), Type.Literal("lobby"), ]), - battleStatus: Type.Ref(battleStatus) + battleStatus: Type.Ref(battleStatus), }, { $id: "user" } );