Binato/server/Packets/RemoveFriend.js

3 lines
No EOL
188 B
JavaScript

module.exports = function(CurrentUser, FriendToRemove) {
global.DatabaseHelper.query("DELETE FROM friends WHERE user = ? AND friendsWith = ? LIMIT 1", [CurrentUser.id, FriendToRemove]);
}