Skip to content
Snippets Groups Projects
Commit 69e08aba authored by syuilo's avatar syuilo
Browse files

refactor(backend): fix type

parent 928c51ba
No related branches found
No related tags found
No related merge requests found
......@@ -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,
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment