Fix the remove's command factory.
This commit is contained in:
+2
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user