forked from University/epr24pr5-ojanssen2
Fix Error
This commit is contained in:
parent
4278535265
commit
3ad11e7e11
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue