mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-25 03:56:44 -06:00
refactor(backend): fix type
This commit is contained in:
parent
928c51ba7b
commit
69e08abaef
1 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ router.get('/notes/:note', async (ctx, next) => {
|
||||||
|
|
||||||
const note = await Notes.findOne({
|
const note = await Notes.findOne({
|
||||||
id: ctx.params.note,
|
id: ctx.params.note,
|
||||||
visibility: In(['public', 'home']),
|
visibility: In(['public' as const, 'home' as const]),
|
||||||
localOnly: false,
|
localOnly: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@ router.get('/notes/:note/activity', async ctx => {
|
||||||
const note = await Notes.findOne({
|
const note = await Notes.findOne({
|
||||||
id: ctx.params.note,
|
id: ctx.params.note,
|
||||||
userHost: null,
|
userHost: null,
|
||||||
visibility: In(['public', 'home']),
|
visibility: In(['public' as const, 'home' as const]),
|
||||||
localOnly: false,
|
localOnly: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue