Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
talafarael committed May 7, 2024
1 parent c537e0b commit 4f994dd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Router/authAuction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const projectId = "commanding-ring-409619" // Get this from Google Cloud
const keyFilename = "mykey.json"
const bcrypt = require("bcryptjs")
const Emailsend = require("../email")

const HistoryBid=require('../model/HistoryBid')
const emailSender = new Emailsend()
const generateAccessToken = require("../middleware/generateAccessToken")
const PasswordSendDelete = require("../passwordSendDelete")
Expand Down
2 changes: 1 addition & 1 deletion src/authRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ router.post('/registercreate',controllerLogin.registerCreate)
router.get('/sendemail',controllerLogin.SendEmail)
router.post('/editprofileimage',type,controllerLogin.editprofileimage)
router.post('/validatetoken',controllerLogin.validateToken)
router.post('/changesendtokenpassword',controllerLogin.changeSendTokenPassword)
router.post('/recoverypassword',controllerLogin.changeSendTokenPassword)
router.post('/getseller',middlewareUser,controllerLogin.getSeller)
router.post('/checktoken',middlewareUser,controllerLogin.checkToken)
router.post('/changepassword',controllerLogin.changePassword)
Expand Down
7 changes: 7 additions & 0 deletions src/model/HistoryBid.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const {model, Schema} = require("mongoose")
const HistoryBid = new Schema({
ListUser: {type:[]},
idAUction:{type:String}
})

module.exports = model("HistoryBid", HistoryBid)

0 comments on commit 4f994dd

Please sign in to comment.