Binato/server/Packets/RemoveFriend.js

3 lines
No EOL
186 B
JavaScript

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