fix(api): fix shared ip route to not return the current user in the query

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2023-10-11 14:17:15 -04:00
parent dd5067db37
commit 5b3515ff8e
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

View File

@ -18,6 +18,9 @@ export default eventHandler(async (ev) => {
"ipLog.ip": { "ipLog.ip": {
$in: [entry.ip], $in: [entry.ip],
}, },
_id: {
$nin: [idee],
},
}) })
.select("username _id") .select("username _id")
.exec() .exec()