From 6e444849597c97c4a0f543432961b7eda49d095c Mon Sep 17 00:00:00 2001 From: llopis15 Date: Thu, 18 Mar 2021 16:30:28 +0100 Subject: [PATCH] update --- methods/bindTicketShelving.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/methods/bindTicketShelving.js b/methods/bindTicketShelving.js index cf3e1f5..d77363d 100644 --- a/methods/bindTicketShelving.js +++ b/methods/bindTicketShelving.js @@ -3,10 +3,11 @@ const router = express.Router(); // eslint-disable-line // const filter = require('../utilities/filter'); const select = require('../db/selectDB'); -router.get('/:collectionShelving', async(req, res) => { +router.get('/:collectionShelving/:collectionFk', async(req, res) => { const collectionShelving = req.params.collectionShelving.split(','); + const collectionFk = req.params.collectionFk; console.log(collectionShelving); - let collectionFk = 273449; + console.log(collectionFk); ticketShelving(collectionShelving, collectionFk); res.json({message: 'SUCCESS'}); });