Skip to content

Commit

Permalink
fix: mongoose objectid equality
Browse files Browse the repository at this point in the history
  • Loading branch information
SayakMukhopadhyay committed Nov 26, 2021
1 parent 65dc17a commit 9e62a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eddn_listener/schemas/journalv5.js
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ function Journal() {
if (message && system && factions && factions.length > 0) {
// Sanity Check
for (const faction of factions) {
const factionPresence = faction.faction_presence.find((system) => system.system_id === system._id)
const factionPresence = faction.faction_presence.find((system) => system.system_id.equals(system._id))
if (factionPresence) {
const existing = await tickDetector
.find({
Expand Down

0 comments on commit 9e62a17

Please sign in to comment.