Skip to content

Commit

Permalink
feat: add sender username to sender field
Browse files Browse the repository at this point in the history
  • Loading branch information
shabane committed Nov 27, 2024
1 parent 631d4eb commit 2983f81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions routes/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ router.post("/", file_upload_handler.array("files" ), (req, res, next) => {
return User_File.create({
user: toUser.id,
data: new_file.id,
sender: user.username,
}).then(user_file => {
files.push({
user: toUser.username,
Expand Down

0 comments on commit 2983f81

Please sign in to comment.