From be2e8992be89fb272a6abd8efb719790d3d7788a Mon Sep 17 00:00:00 2001 From: Kagamino <martin@lehoux.net> Date: Wed, 10 Apr 2019 15:14:42 +0200 Subject: [PATCH] Ajout d ela recherche par appartennance au toucan --- app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app.js b/app.js index 5606188..142c91f 100644 --- a/app.js +++ b/app.js @@ -73,6 +73,7 @@ app.get("/clients", (req, res) => { .exec() .then(clients => { if (req.query.search) clients = search(req.query.search, clients); + if (req.query.membre) clients = clients.filter(client => client.membre); res.render("clients", { clients, loggedIn: Boolean(req.session.loggedIn) }) }) }); -- GitLab