Fix the remove's command factory.

This commit is contained in:
2023-10-29 12:10:53 +02:00
parent d03eb7e824
commit 5159beee68
@@ -45,10 +45,10 @@ public class CommandFactory {
return new CommandEntity<Department, T>(repository, method, department);
}
}else {
String uuidString = commandData.arguments.get("uuid");
String uuidString = commandData.arguments.get("id");
UUID uuid = UUID.fromString(uuidString);
Method method = repository.getClass().getMethod("delete");
Method method = repository.getClass().getMethod("delete", UUID.class);
return new CommandEntity<UUID, T>(repository, method, uuid);
}
} catch (NoSuchMethodException e) {