Skip to content

Commit

Permalink
fix: fix channel_programs update query in updateLineup
Browse files Browse the repository at this point in the history
Only delete associations for a specific channel
  • Loading branch information
chrisbenincasa committed Dec 13, 2024
1 parent a4cb229 commit ea73a5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/db/ChannelDB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,6 @@ export class ChannelDB {
return await getDatabase()
.transaction()
.execute(async (tx) => {
console.log('in here');
await tx
.updateTable('channel')
.where('channel.uuid', '=', id)
Expand Down Expand Up @@ -679,6 +678,7 @@ export class ChannelDB {
await tx
.deleteFrom('channelPrograms')
.where('channelPrograms.programUuid', 'in', map(removes, 'id'))
.where('channelPrograms.channelUuid', '=', id)
.execute();
}

Expand Down

0 comments on commit ea73a5d

Please sign in to comment.