From 3ad11e7e11744b7766dc48112703b4c78c4838d4 Mon Sep 17 00:00:00 2001 From: jbrass Date: Mon, 10 Feb 2025 01:12:24 +0100 Subject: [PATCH] Fix Error --- UnassignCommand.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UnassignCommand.cpp b/UnassignCommand.cpp index d0b90b6..73c48ef 100644 --- a/UnassignCommand.cpp +++ b/UnassignCommand.cpp @@ -25,8 +25,10 @@ namespace commands if (!t) throw Error(301, "Eine solche Zuordnung existiert nicht."); if (!mgr->assignment_exists(user_id, task_id)) - throw Error(302, "Eine solche Zuordnung existiert bereits."); + + throw Error(301, "Eine solche Zuordnung existiert nicht."); Assignment as = {user_id, task_id}; + //TODO:: DELETES THE WRONG THINGS mgr->del_assignment(as); mgr->save(); }