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); return new CommandEntity<Department, T>(repository, method, department);
} }
}else { }else {
String uuidString = commandData.arguments.get("uuid"); String uuidString = commandData.arguments.get("id");
UUID uuid = UUID.fromString(uuidString); 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); return new CommandEntity<UUID, T>(repository, method, uuid);
} }
} catch (NoSuchMethodException e) { } catch (NoSuchMethodException e) {

Loading…
Cancel
Save