Skip to content

Commit

Permalink
Update query
Browse files Browse the repository at this point in the history
  • Loading branch information
HitomaruKonpaku committed Nov 11, 2023
1 parent abb28c9 commit 4200a08
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/module/twitter/service/data/twitter-space.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,15 @@ WHERE is_active = TRUE
public async getManyActive(options?: QueryOptions) {
const query = this.repository
.createQueryBuilder()
.andWhere('is_active = TRUE')
.orWhere(new Brackets((qb0) => {
qb0
.andWhere('is_active = TRUE')
}))
.orWhere(new Brackets((qb0) => {
qb0
.andWhere('is_active = FALSE')
.andWhere('playlist_active = TRUE')
}))
// .andWhere(new Brackets((qb0) => {
// qb0
// .orWhere(new Brackets((qb1) => {
Expand Down

0 comments on commit 4200a08

Please sign in to comment.