Binato/server/Packets/RemoveFriend.js
2020-09-02 12:19:19 +01:00

5 lines
No EOL
244 B
JavaScript

const DatabaseHelper = require("../DatabaseHelper.js");
module.exports = function(CurrentUser, FriendToRemove) {
DatabaseHelper.getFromDB(`DELETE FROM friends WHERE user = ${CurrentUser.id} AND friendsWith = ${FriendToRemove} LIMIT 1`);
}