mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 20:43:08 +02:00
Fix bug
This commit is contained in:
parent
813c52f51e
commit
cc8a7dd588
1 changed files with 5 additions and 1 deletions
|
@ -25,7 +25,11 @@ export async function getNote(noteId: mongo.ObjectID) {
|
||||||
export async function getUser(userId: mongo.ObjectID) {
|
export async function getUser(userId: mongo.ObjectID) {
|
||||||
const user = await User.findOne({
|
const user = await User.findOne({
|
||||||
_id: userId,
|
_id: userId,
|
||||||
|
$or: [{
|
||||||
|
isDeleted: { $exists: false }
|
||||||
|
}, {
|
||||||
isDeleted: false
|
isDeleted: false
|
||||||
|
}]
|
||||||
}, {
|
}, {
|
||||||
fields: {
|
fields: {
|
||||||
data: false,
|
data: false,
|
||||||
|
|
Loading…
Reference in a new issue