broadcast on upload

This commit is contained in:
slynn1324 2021-01-28 17:10:39 -06:00
parent b2c4e494ed
commit 020aadf509

View file

@ -664,6 +664,8 @@ app.post("/up/", async (req, res) => {
// return the newly created row
let pin = db.prepare("SELECT * FROM pins WHERE userId = @userId and id = @pinId").get({userId: req.user.id, pinId: id});
res.send(pin);
broadcast(req.user.id, {updateBoard:boardId});
return;
});