From 9ca2ca0f499e66246fe5a7983e4e0cf6d65116a9 Mon Sep 17 00:00:00 2001 From: zkldi Date: Mon, 3 May 2021 19:23:10 +0100 Subject: [PATCH] customfolders as separate doc --- common/js/types.d.ts | 6 ++---- common/src/types.ts | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/common/js/types.d.ts b/common/js/types.d.ts index 72bf727b9..d0eb4312a 100644 --- a/common/js/types.d.ts +++ b/common/js/types.d.ts @@ -702,8 +702,6 @@ export interface SongDocument extends AnySongDocument { export interface FolderDocument extends MongoDBDocument { title: string; game: Game; - custom: boolean; - byUser: integer | null; playtype: Playtypes[Game]; type: "query" | "static"; query: { @@ -711,8 +709,8 @@ export interface FolderDocument extends MongoDBDocument { body: Record; }; folderID: string; - table: string | null; - tableIndex: integer | null; + table: string; + tableIndex: integer; } export interface UserMilestoneDocument extends MongoDBDocument { milestoneID: string; diff --git a/common/src/types.ts b/common/src/types.ts index c5d30be21..843630513 100644 --- a/common/src/types.ts +++ b/common/src/types.ts @@ -881,8 +881,6 @@ export interface SongDocument extends AnySongDocument { export interface FolderDocument extends MongoDBDocument { title: string; game: Game; - custom: boolean; - byUser: integer | null; playtype: Playtypes[Game]; type: "query" | "static"; query: { @@ -890,8 +888,8 @@ export interface FolderDocument extends MongoDBDocument { body: Record; }; folderID: string; - table: string | null; - tableIndex: integer | null; + table: string; + tableIndex: integer; } export interface UserMilestoneDocument extends MongoDBDocument {