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 21
21
"format" : " biome format --write ." ,
22
22
"check" : " biome check ." ,
23
23
"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" ,
25
25
"dev" : " bun --watch src/index.ts" ,
26
26
"start" : " bun src/index.ts"
27
27
},
Original file line number Diff line number Diff line change @@ -119,7 +119,10 @@ const insertDiscs = async (discs: TDisc[]) => {
119
119
return allDiscs ;
120
120
} ;
121
121
122
- const deleteAllDiscs = ( ) => DiscModel . deleteMany ( ) ;
122
+ const deleteAllDiscs = async ( ) => {
123
+ await DiscModel . deleteMany ( ) ;
124
+ discCache . discs = [ ] ;
125
+ } ;
123
126
124
127
export const Disc = {
125
128
getDiscData,
You can’t perform that action at this time.
0 commit comments