summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/notes/conversation.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-07-05 23:36:07 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-07-05 23:36:07 +0900
commit11439afde76015b80e8d2e680808161cbc1800d5 (patch)
tree8888a7c3f9a209b57ca2ebd327e624a69f0b2130 /src/server/api/endpoints/notes/conversation.ts
parentwip (diff)
downloadsharkey-11439afde76015b80e8d2e680808161cbc1800d5.tar.gz
sharkey-11439afde76015b80e8d2e680808161cbc1800d5.tar.bz2
sharkey-11439afde76015b80e8d2e680808161cbc1800d5.zip
wip
Diffstat (limited to 'src/server/api/endpoints/notes/conversation.ts')
-rw-r--r--src/server/api/endpoints/notes/conversation.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/api/endpoints/notes/conversation.ts b/src/server/api/endpoints/notes/conversation.ts
index b2bc6a2e72..a8e8c4eeb7 100644
--- a/src/server/api/endpoints/notes/conversation.ts
+++ b/src/server/api/endpoints/notes/conversation.ts
@@ -11,11 +11,11 @@ module.exports = (params: any, user: ILocalUser) => new Promise(async (res, rej)
if (noteIdErr) return rej('invalid noteId param');
// Get 'limit' parameter
- const [limit = 10, limitErr] = $.num.optional().range(1, 100).get(params.limit);
+ const [limit = 10, limitErr] = $.num.optional.range(1, 100).get(params.limit);
if (limitErr) return rej('invalid limit param');
// Get 'offset' parameter
- const [offset = 0, offsetErr] = $.num.optional().min(0).get(params.offset);
+ const [offset = 0, offsetErr] = $.num.optional.min(0).get(params.offset);
if (offsetErr) return rej('invalid offset param');
// Lookup note