Binato/server/Packets/AddFriend.js
2020-09-02 12:19:19 +01:00

5 lines
No EOL
229 B
JavaScript

const DatabaseHelper = require("../DatabaseHelper.js");
module.exports = function(CurrentUser, FriendToAdd) {
DatabaseHelper.getFromDB(`INSERT INTO friends (user, friendsWith) VALUES (${CurrentUser.id}, ${FriendToAdd});`);
}