fix: disable limit on update/delete queries (#1077)

This is necessary until Bun enables the feature in sqlite:
https://github.com/oven-sh/bun/issues/16909 and https://github.com/oven-sh/bun/pull/16884
This commit is contained in:
Christian Benincasa
2025-01-30 10:57:31 -05:00
committed by GitHub
parent d648e1e155
commit 2b37fe0304
20 changed files with 226 additions and 46 deletions

View File

@@ -121,7 +121,8 @@ export class MediaSourceDB {
await getDatabase()
.deleteFrom('mediaSource')
.where('uuid', '=', id)
.limit(1)
// TODO: Blocked on https://github.com/oven-sh/bun/issues/16909
// .limit(1)
.execute();
let reports: Report[];
@@ -162,7 +163,8 @@ export class MediaSourceDB {
updatedAt: +dayjs(),
})
.where('uuid', '=', server.id)
.limit(1)
// TODO: Blocked on https://github.com/oven-sh/bun/issues/16909
// .limit(1)
.executeTakeFirst();
const report = await this.fixupProgramReferences(id, s.type, s);