diff --git a/app/public/js/filter.js b/app/public/js/filter.js index f195266..10cf6c9 100644 --- a/app/public/js/filter.js +++ b/app/public/js/filter.js @@ -40,7 +40,7 @@ function generateOfferPrototype(offer) { const h4 = document.createElement('h4'); h4.className = ''; - h4.innerHTML = `${offer.ficheDePoste.typeMetier} 45000 €`; + h4.innerHTML = `${offer.ficheDePoste.typeMetier} ${offer.ficheDePoste.salaire} €`; const p1 = document.createElement('p'); p1.innerHTML = offer.ficheDePoste.description; diff --git a/app/repository/OfferRepository.ts b/app/repository/OfferRepository.ts index 7420303..54d9689 100644 --- a/app/repository/OfferRepository.ts +++ b/app/repository/OfferRepository.ts @@ -34,7 +34,7 @@ export class OfferRepository { query += ` WHERE FicheDePoste.salaire >= ?`; params.push(filterOffer.minSalary); if (filterOffer.region) { - query += ` AND FicheDePoste.lieu = ?'`; + query += ` AND FicheDePoste.lieu = ?`; params.push(filterOffer.region); } } diff --git a/app/routes/MainRouter.ts b/app/routes/MainRouter.ts index 649b89c..e228efc 100644 --- a/app/routes/MainRouter.ts +++ b/app/routes/MainRouter.ts @@ -14,7 +14,6 @@ export const defaultRouter = Router(); defaultRouter.use( session({ genid: (req:any) => { - console.log("1. in genid req.sessionID: ", req.sessionID); return uuidv4(); }, store: new FileStore(), diff --git a/app/views/index.ejs b/app/views/index.ejs index ea4af69..f44e547 100644 --- a/app/views/index.ejs +++ b/app/views/index.ejs @@ -20,7 +20,7 @@

Filtres


Salaire
-

Salaire minimum :

Région
@@ -39,7 +39,7 @@ <% offers.forEach((offer) => { %>

<%= offer.ficheDePoste.typeMetier %> 45000 € + class="badge text-bg-secondary float-end"><%= offer.ficheDePoste.salaire %> €

<%= offer.ficheDePoste.description %>

Organisation : <%= offer.ficheDePoste.siren %>