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

fix instagram and big number issue and propmall issue #395

Merged
merged 1 commit into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions controllers/external.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const { ObjectId } = require('mongodb')
var sanitize = require('mongo-sanitize')
const web3 = require('web3')
const { externalUpdateStatforUser } = require('../helpers/common')
const Big = require('big.js')

const {
getInstagramUserName,
Expand Down
31 changes: 31 additions & 0 deletions routes/campaign.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,37 @@
*/
router.get('/campaignPrompAll/:id', verifyAuth, campaignPrompValidation,campaignPromp)



/**
* @swagger
* /campaign/campaignPrompAllExt/{id}:
* get:
* tags: ["campaign"]
* summary: get campaign pending link
* description: return to user the list of campaign promp ALl <br> without access_token
* produces:
* - application/json
* parameters:
* - in: path
* name: id
* type: string
* description: the campaign id.
* required: true
* - in: query
* name: influencer
* type: string
* description: the influencer wallet_id.
* responses:
* "200":
* description: code,<br>message:"success"
* "401":
* description: error:error message<br>"unothorized"
* "500":
* description: error:"error"
*/
router.get('/campaignPrompAllExt/:id',campaignPrompValidation,campaignPromp)

Check failure

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
a database access
, but is not rate-limited.
This route handler performs
a database access
, but is not rate-limited.
This route handler performs
a database access
, but is not rate-limited.
This route handler performs
a database access
, but is not rate-limited.
This route handler performs
a database access
, but is not rate-limited.

/**
* @swagger
* /campaign/expandLink/{shortUrl}:
Expand Down