Binato/server/Packets/AddFriend.js

3 lines
174 B
JavaScript
Raw Normal View History

2020-09-02 12:19:19 +01:00
module.exports = function(CurrentUser, FriendToAdd) {
global.DatabaseHelper.query("INSERT INTO friends (user, friendsWith) VALUES (?, ?);", [CurrentUser.id, FriendToAdd]);
2020-09-02 12:19:19 +01:00
}