Skip to content

Commit e87b998

Browse files
committed
fixes
1 parent 0bd1f58 commit e87b998

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
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
},

src/models/disc.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

124127
export const Disc = {
125128
getDiscData,

0 commit comments

Comments
 (0)