More logs in Rest
This commit is contained in:
parent
8a741dc729
commit
bbdc53bda1
1 changed files with 8 additions and 5 deletions
|
|
@ -439,11 +439,14 @@ if (!Meteor.settings.private.internalApiToken) {
|
||||||
const user = Meteor.users.findOne({ fireBaseToken: mobileToken });
|
const user = Meteor.users.findOne({ fireBaseToken: mobileToken });
|
||||||
if (!user) return failMsg('User not found');
|
if (!user) return failMsg('User not found');
|
||||||
|
|
||||||
// TODO
|
console.log(`Marking hash fire as '${type}' false positive: ${sealed}`);
|
||||||
const fire = fireFromHash(sealed, {});
|
const fire = fireFromHash(sealed, { id: sealed });
|
||||||
console.log(`Marking fire as false positive: ${JSON.stringify(fire)}`);
|
if (fire && typeof fire === 'object') {
|
||||||
const result = upsertFalsePositive(type, user._id, fire);
|
console.log(`Marking fire as false positive: ${fire._id}`);
|
||||||
return jsend.success({ upsert: result });
|
const result = upsertFalsePositive(type, user._id, fire);
|
||||||
|
return jsend.success({ upsert: result });
|
||||||
|
}
|
||||||
|
return failMsg('Cannot mark fire as false positive');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue