From 397ed9f104279e2a286ff306b9a9ddfe53c09050 Mon Sep 17 00:00:00 2001 From: Jazcash Date: Tue, 18 Jun 2024 00:42:23 +0100 Subject: [PATCH] format --- src/schema/definitions/battleStatus.ts | 9 +++++---- src/schema/definitions/user.ts | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) 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" } );