Skip to content

Commit

Permalink
Fix stupid version thingy
Browse files Browse the repository at this point in the history
  • Loading branch information
Rikthepixel committed Jan 19, 2024
1 parent 6c0bb1b commit 2a29bca
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ export default class KnexCategoryPropertyOptionValueRepository
values.length === 0
? null
: await trx
.table('category_property_options as opts')
.table('category_property_options')
.whereIn(
'opts.uid',
'uid',
values.map((val) => trx.fn.uuidToBin(val.option_uid)),
)
.select<{ id: number; uid: Buffer }[]>('opts.id', 'opts.uid')
.select<{ id: number; uid: Buffer }[]>('id', 'uid')
.then((opts) =>
opts.map((opt) => ({
id: opt.id,
Expand All @@ -45,8 +45,8 @@ export default class KnexCategoryPropertyOptionValueRepository
);

await trx
.table(this.table + ' as vals')
.where('vals.advertisement_id', advertisementId)
.table(this.table)
.where('advertisement_id', advertisementId)
.delete();

if (!options) return;
Expand Down

0 comments on commit 2a29bca

Please sign in to comment.