1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-11-29 07:18:13 +09:00

refactor(backend): fix type

This commit is contained in:
syuilo 2022-01-26 18:52:40 +09:00
parent 928c51ba7b
commit 69e08abaef

View File

@ -67,7 +67,7 @@ router.get('/notes/:note', async (ctx, next) => {
const note = await Notes.findOne({
id: ctx.params.note,
visibility: In(['public', 'home']),
visibility: In(['public' as const, 'home' as const]),
localOnly: false,
});
@ -96,7 +96,7 @@ router.get('/notes/:note/activity', async ctx => {
const note = await Notes.findOne({
id: ctx.params.note,
userHost: null,
visibility: In(['public', 'home']),
visibility: In(['public' as const, 'home' as const]),
localOnly: false,
});