Binato/server/packets/RemoveFriend.ts

7 lines
226 B
TypeScript
Raw Normal View History

2023-09-10 12:59:22 +01:00
import User from "../objects/User";
2023-08-20 13:03:01 +01:00
2023-09-10 12:59:22 +01:00
export default function RemoveFriend(user:User, friendId:number) {
2023-08-20 13:03:01 +01:00
user.shared.database.query("DELETE FROM friends WHERE user = ? AND friendsWith = ? LIMIT 1", [
user.id, friendId
]);
}