-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
instagram oracle fetch stats for external users #418
Conversation
|
||
? (delete query.id_wallet, | ||
await CampaignLink.find( | ||
{ id_campaign: query.id_campaign }, |
Check failure
Code scanning / CodeQL
Database query built from user-controlled sources High
user-provided value
{ type: 0 } | ||
).countDocuments()) | ||
: (await CampaignLink.find( | ||
{ id_wallet: query.id_wallet }, |
Check failure
Code scanning / CodeQL
Database query built from user-controlled sources High
user-provided value
exports.externalGetOneLinks = async (req, res) => { | ||
try { | ||
const _id = req.body.params | ||
|
||
let link = await CampaignLink.find({_id}) | ||
|
||
let link = await CampaignLink.find({ _id }) |
Check failure
Code scanning / CodeQL
Database query built from user-controlled sources High
user-provided value
var credentials = { | ||
network: campaignData.token.type, | ||
await CampaignLink.updateOne( | ||
{ id_prom: req.body.idProm }, |
Check failure
Code scanning / CodeQL
Database query built from user-controlled sources High
user-provided value
var link = await CampaignLink.findOne({ | ||
id_prom: req.body.idProm, | ||
}).lean() |
Check failure
Code scanning / CodeQL
Database query built from user-controlled sources High
user-provided value
let cmpLink = await CampaignLink.findOne({ | ||
id_prom: req.body.idProm, | ||
}).lean() |
Check failure
Code scanning / CodeQL
Database query built from user-controlled sources High
user-provided value
if (idWallet) { | ||
let user = await UserExternalWallet.findOne({walletId: idWallet}); | ||
var idNode = user.UserId; | ||
let user = await UserExternalWallet.findOne({ walletId: idWallet }) |
Check failure
Code scanning / CodeQL
Database query built from user-controlled sources High
user-provided value
|
||
const campaignId = req.body.prom.campaign._id | ||
|
||
const campaign = await Campaigns.findOne({ _id: campaignId }).lean() |
Check failure
Code scanning / CodeQL
Database query built from user-controlled sources High
No description provided.