mirror of
https://github.com/slynn1324/tinypin.git
synced 2026-01-23 02:25:08 +00:00
broadcast on upload
This commit is contained in:
parent
b2c4e494ed
commit
020aadf509
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue