Binato/server/Packets/RemoveFriend.js

3 lines
188 B
JavaScript
Raw Normal View History

2020-09-02 12:19:19 +01:00
module.exports = function(CurrentUser, FriendToRemove) {
global.DatabaseHelper.query("DELETE FROM friends WHERE user = ? AND friendsWith = ? LIMIT 1", [CurrentUser.id, FriendToRemove]);
}