Skip to content

Commit 1850f7f

Browse files
committed
fix: update child type filter in query from '1' to 'work'
1 parent 5a0079b commit 1850f7f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/graphorm/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1800,7 +1800,7 @@ const obj = new GraphORM({
18001800
qb
18011801
.where(`${childAlias}."userId" = ${parentAlias}.id`)
18021802
.andWhere(`${childAlias}.verified = true`)
1803-
.andWhere(`${childAlias}.type = '1'`)
1803+
.andWhere(`${childAlias}.type = 'work'`)
18041804
.orderBy(`${childAlias}."startedAt"`, 'DESC')
18051805
.limit(1),
18061806
},

0 commit comments

Comments
 (0)