mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-25 13:39:06 +01:00
Fix bug
This commit is contained in:
parent
5911858b03
commit
8e59da66d5
@ -25,7 +25,11 @@ export async function getNote(noteId: mongo.ObjectID) {
|
||||
export async function getUser(userId: mongo.ObjectID) {
|
||||
const user = await User.findOne({
|
||||
_id: userId,
|
||||
isDeleted: false
|
||||
$or: [{
|
||||
isDeleted: { $exists: false }
|
||||
}, {
|
||||
isDeleted: false
|
||||
}]
|
||||
}, {
|
||||
fields: {
|
||||
data: false,
|
||||
|
Loading…
Reference in New Issue
Block a user