File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 2121 "format" : " biome format --write ." ,
2222 "check" : " biome check ." ,
2323 "deploy" : " flyctl deploy --remote-only --detach --no-cache --config fly.toml" ,
24- "compile" : " bun build --compile --minify --sourcemap src/server/ index.ts --outfile main" ,
24+ "compile" : " bun build --compile --minify --sourcemap src/index.ts --outfile main" ,
2525 "dev" : " bun --watch src/index.ts" ,
2626 "start" : " bun src/index.ts"
2727 },
Original file line number Diff line number Diff line change @@ -119,7 +119,10 @@ const insertDiscs = async (discs: TDisc[]) => {
119119 return allDiscs ;
120120} ;
121121
122- const deleteAllDiscs = ( ) => DiscModel . deleteMany ( ) ;
122+ const deleteAllDiscs = async ( ) => {
123+ await DiscModel . deleteMany ( ) ;
124+ discCache . discs = [ ] ;
125+ } ;
123126
124127export const Disc = {
125128 getDiscData,
You can’t perform that action at this time.
0 commit comments