mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-10 15:40:57 -07:00
Refactoring
This commit is contained in:
parent
8c52f28e39
commit
776d579065
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ router.get('/notes/:note', async (ctx, next) => {
|
|||
|
||||
const note = await Note.findOne({
|
||||
_id: new mongo.ObjectID(ctx.params.note),
|
||||
$or: [ { visibility: 'public' }, { visibility: 'home' } ]
|
||||
visibility: { $in: ['public', 'home'] }
|
||||
});
|
||||
|
||||
if (note === null) {
|
||||
|
|
Loading…
Reference in a new issue