Binato/server/Packets/RemoveFriend.js

3 lines
196 B
JavaScript
Raw Normal View History

2020-09-02 12:19:19 +01:00
module.exports = function(CurrentUser, FriendToRemove) {
2020-09-07 19:23:06 +01:00
global.DatabaseHelper.executeInDB(`DELETE FROM friends WHERE user = ${CurrentUser.id} AND friendsWith = ${FriendToRemove} LIMIT 1`);
2020-09-02 12:19:19 +01:00
}