Binato/server/Packets/AddFriend.js

3 lines
181 B
JavaScript
Raw Normal View History

2020-09-02 12:19:19 +01:00
module.exports = function(CurrentUser, FriendToAdd) {
2020-09-07 19:23:06 +01:00
global.DatabaseHelper.executeInDB(`INSERT INTO friends (user, friendsWith) VALUES (${CurrentUser.id}, ${FriendToAdd});`);
2020-09-02 12:19:19 +01:00
}