From a485f89cf92daa9f62db1eff9a7b18915afe8cf1 Mon Sep 17 00:00:00 2001 From: zkldi Date: Mon, 3 May 2021 18:45:15 +0100 Subject: [PATCH] FolderDoc updates --- common/js/types.d.ts | 9 ++++----- common/src/types.ts | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/common/js/types.d.ts b/common/js/types.d.ts index 187060ac7..b54e374ae 100644 --- a/common/js/types.d.ts +++ b/common/js/types.d.ts @@ -703,12 +703,11 @@ export interface FolderDocument extends MongoDBDocument { title: string; game: Game; custom: boolean; - byUser: integer; - views: integer; - type: "query"; + byUser: integer | null; + type: "query" | "static"; query: { - collection: string; - query: Record; + collection: "songs" | "charts"; + body: Record; }; folderID: string; table: string; diff --git a/common/src/types.ts b/common/src/types.ts index 2fd64cc9a..9bded4e98 100644 --- a/common/src/types.ts +++ b/common/src/types.ts @@ -882,12 +882,11 @@ export interface FolderDocument extends MongoDBDocument { title: string; game: Game; custom: boolean; - byUser: integer; - views: integer; - type: "query"; + byUser: integer | null; + type: "query" | "static"; query: { - collection: string; - query: Record; + collection: "songs" | "charts"; + body: Record; }; folderID: string; table: string;