summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/api/endpoints/notes.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-04-03 15:33:22 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-04-03 15:33:22 +0900
commit41c2aed7dc760d8a89cd09c32cfbee620596fb61 (patch)
tree9307e469f13ba267e359369ae83ddb40d3b46064 /packages/backend/src/server/api/endpoints/notes.ts
parentchore: fix paths (diff)
downloadsharkey-41c2aed7dc760d8a89cd09c32cfbee620596fb61.tar.gz
sharkey-41c2aed7dc760d8a89cd09c32cfbee620596fb61.tar.bz2
sharkey-41c2aed7dc760d8a89cd09c32cfbee620596fb61.zip
chore: fix lint
Diffstat (limited to 'packages/backend/src/server/api/endpoints/notes.ts')
-rw-r--r--packages/backend/src/server/api/endpoints/notes.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/backend/src/server/api/endpoints/notes.ts b/packages/backend/src/server/api/endpoints/notes.ts
index 99c8b973f6..2733c826e9 100644
--- a/packages/backend/src/server/api/endpoints/notes.ts
+++ b/packages/backend/src/server/api/endpoints/notes.ts
@@ -52,19 +52,19 @@ export default define(meta, paramDef, async (ps) => {
query.andWhere('note.userHost IS NULL');
}
- if (ps.reply != undefined) {
+ if (ps.reply !== undefined) {
query.andWhere(ps.reply ? 'note.replyId IS NOT NULL' : 'note.replyId IS NULL');
}
- if (ps.renote != undefined) {
+ if (ps.renote !== undefined) {
query.andWhere(ps.renote ? 'note.renoteId IS NOT NULL' : 'note.renoteId IS NULL');
}
- if (ps.withFiles != undefined) {
+ if (ps.withFiles !== undefined) {
query.andWhere(ps.withFiles ? `note.fileIds != '{}'` : `note.fileIds = '{}'`);
}
- if (ps.poll != undefined) {
+ if (ps.poll !== undefined) {
query.andWhere(ps.poll ? 'note.hasPoll = TRUE' : 'note.hasPoll = FALSE');
}