Binato/server/Packets/RemoveFriend.js
2020-09-07 19:23:06 +01:00

3 lines
No EOL
196 B
JavaScript

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