Fix for false positive rest call
This commit is contained in:
parent
bbdc53bda1
commit
6f287b67c9
1 changed files with 3 additions and 2 deletions
|
|
@ -440,8 +440,9 @@ if (!Meteor.settings.private.internalApiToken) {
|
||||||
if (!user) return failMsg('User not found');
|
if (!user) return failMsg('User not found');
|
||||||
|
|
||||||
console.log(`Marking hash fire as '${type}' false positive: ${sealed}`);
|
console.log(`Marking hash fire as '${type}' false positive: ${sealed}`);
|
||||||
const fire = fireFromHash(sealed, { id: sealed });
|
const fireC = fireFromHash(sealed, { id: sealed });
|
||||||
if (fire && typeof fire === 'object') {
|
if (fireC && typeof fireC === 'object') {
|
||||||
|
const fire = fireC.fetch()[0];
|
||||||
console.log(`Marking fire as false positive: ${fire._id}`);
|
console.log(`Marking fire as false positive: ${fire._id}`);
|
||||||
const result = upsertFalsePositive(type, user._id, fire);
|
const result = upsertFalsePositive(type, user._id, fire);
|
||||||
return jsend.success({ upsert: result });
|
return jsend.success({ upsert: result });
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue