From 4f994dd4eb238050822422adb2111078a39f30fe Mon Sep 17 00:00:00 2001 From: talafarael <127351345+talafarael@users.noreply.github.com> Date: Tue, 7 May 2024 21:30:42 +0300 Subject: [PATCH] fix --- src/Router/authAuction.ts | 2 +- src/authRouter.js | 2 +- src/model/HistoryBid.ts | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 src/model/HistoryBid.ts diff --git a/src/Router/authAuction.ts b/src/Router/authAuction.ts index 37ccb2b..d5105a3 100644 --- a/src/Router/authAuction.ts +++ b/src/Router/authAuction.ts @@ -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") diff --git a/src/authRouter.js b/src/authRouter.js index a5dd1a0..8a70d64 100644 --- a/src/authRouter.js +++ b/src/authRouter.js @@ -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) diff --git a/src/model/HistoryBid.ts b/src/model/HistoryBid.ts new file mode 100644 index 0000000..469da67 --- /dev/null +++ b/src/model/HistoryBid.ts @@ -0,0 +1,7 @@ +const {model, Schema} = require("mongoose") +const HistoryBid = new Schema({ + ListUser: {type:[]}, + idAUction:{type:String} +}) + +module.exports = model("HistoryBid", HistoryBid)