Skip to content

Commit

Permalink
refresh data (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
waelhanfi04 authored Jan 11, 2024
2 parents c8c0028 + d8dbcd3 commit 24c7421
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/external.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const multer = require('multer')
const { ObjectId } = require('mongodb')
var sanitize = require('mongo-sanitize')
const web3 = require('web3')
const { updateStatforUser } = require('../helpers/common')

const {
getInstagramUserName,
Expand Down Expand Up @@ -84,13 +85,15 @@ exports.createUserFromExternalWallet = async (req, res) => {
walletId: req.body.wallet,
})
const savedUser = await user.save()

return makeResponseData(
res,
200,
'User created successfully',
savedUser
)
} else
await updateStatforUser(userExist.UserId)
return makeResponseData(
res,
200,
Expand Down

0 comments on commit 24c7421

Please sign in to comment.