mirror of
https://github.com/chrisbenincasa/tunarr.git
synced 2026-04-18 09:03:35 -04:00
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:
committed by
GitHub
parent
d648e1e155
commit
2b37fe0304
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user