refactor(backend): fix type
This commit is contained in:
		| @@ -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, | ||||
| 	}); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo