Fix the remove's command factory.

main
KKlochko 2 years ago
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) {

Loading…
Cancel
Save