mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 11:23:09 +02:00
Refactoring
This commit is contained in:
parent
16ad232c40
commit
0a4015b8a2
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({
|
const note = await Note.findOne({
|
||||||
_id: new mongo.ObjectID(ctx.params.note),
|
_id: new mongo.ObjectID(ctx.params.note),
|
||||||
$or: [ { visibility: 'public' }, { visibility: 'home' } ]
|
visibility: { $in: ['public', 'home'] }
|
||||||
});
|
});
|
||||||
|
|
||||||
if (note === null) {
|
if (note === null) {
|
||||||
|
|
Loading…
Reference in a new issue