summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/notes
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-06-08 14:14:58 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-06-08 14:14:58 +0900
commit56600ba1df2186bd3b0d5d30b4f1fd53bf5efd5d (patch)
treeb241e783a7a731cb75a7439b9d975d3c4f2278eb /src/server/api/endpoints/notes
parentRemove endpoint descriptions (diff)
downloadsharkey-56600ba1df2186bd3b0d5d30b4f1fd53bf5efd5d.tar.gz
sharkey-56600ba1df2186bd3b0d5d30b4f1fd53bf5efd5d.tar.bz2
sharkey-56600ba1df2186bd3b0d5d30b4f1fd53bf5efd5d.zip
refactor type
Diffstat (limited to 'src/server/api/endpoints/notes')
-rw-r--r--src/server/api/endpoints/notes/create.ts2
-rw-r--r--src/server/api/endpoints/notes/search-by-tag.ts6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/server/api/endpoints/notes/create.ts b/src/server/api/endpoints/notes/create.ts
index 7410d28cb0..beeacb5374 100644
--- a/src/server/api/endpoints/notes/create.ts
+++ b/src/server/api/endpoints/notes/create.ts
@@ -50,7 +50,7 @@ export const meta = {
&& length(text.trim()) <= maxNoteTextLength
&& Array.from(text.trim()).length <= DB_MAX_NOTE_TEXT_LENGTH // DB limit
),
- default: null as any,
+ default: null,
},
cw: {
diff --git a/src/server/api/endpoints/notes/search-by-tag.ts b/src/server/api/endpoints/notes/search-by-tag.ts
index b7d41d9e71..bbada17613 100644
--- a/src/server/api/endpoints/notes/search-by-tag.ts
+++ b/src/server/api/endpoints/notes/search-by-tag.ts
@@ -23,12 +23,12 @@ export const meta = {
reply: {
validator: $.optional.nullable.bool,
- default: null as any,
+ default: null,
},
renote: {
validator: $.optional.nullable.bool,
- default: null as any,
+ default: null,
},
withFiles: {
@@ -37,7 +37,7 @@ export const meta = {
poll: {
validator: $.optional.nullable.bool,
- default: null as any,
+ default: null,
},
sinceId: {