Closed si458 closed 4 years ago
IGNORE: i was reusing my thedb.sqlupdate over and over, instead of doing a new thedb.sqlquery.update() every time
var query = thedb.sqlquery.update().into("metrics").set({ metrics_name: req.body.name }).where({ metrics_id: req.body.id }).build();
having a strange one with nodejs and express and just displaying the output as string
output:
but refresh webpage
output:
why is it adding to the where instead of clearing it and starting a fresh?