From 953cd244169221a4b32f924562c36434de81015f Mon Sep 17 00:00:00 2001 From: Pratik Thorat Date: Tue, 19 Dec 2023 00:32:37 +0530 Subject: [PATCH] Update index.js This change will fix the incorrect comment in post api --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 75bad146a..1cf63d35a 100644 --- a/index.js +++ b/index.js @@ -25,7 +25,7 @@ app.post('/:col/:key', async (req, res) => { const col = req.params.col const key = req.params.key - console.log(`from collection: ${col} delete key: ${key} with params ${JSON.stringify(req.params)}`) + console.log(`from collection: ${col} create or update key: ${key} with params ${JSON.stringify(req.params)}`) const item = await db.collection(col).set(key, req.body) console.log(JSON.stringify(item, null, 2)) res.json(item).end()