Skip to content
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

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

hichri-louay
Copy link
Contributor

No description provided.

@hichri-louay hichri-louay merged commit 0e280b7 into develop Feb 12, 2024
1 check passed
@hichri-louay hichri-louay deleted the get-gains-correction branch February 12, 2024 15:20

? (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

This query object depends on a
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

This query object depends on a
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

This query object depends on a
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

This query object depends on a
user-provided value
.
Comment on lines +1322 to +1324
var link = await CampaignLink.findOne({
id_prom: req.body.idProm,
}).lean()

Check failure

Code scanning / CodeQL

Database query built from user-controlled sources High

This query object depends on a
user-provided value
.
Comment on lines +1362 to +1364
let cmpLink = await CampaignLink.findOne({
id_prom: req.body.idProm,
}).lean()

Check failure

Code scanning / CodeQL

Database query built from user-controlled sources High

This query object depends on a
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

This query object depends on a
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

This query object depends on a
user-provided value
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant