ChangeControl: Add getId() method

Change-Id: I7d559df16e431f6440b031ed80dd1025efa0a71a
This commit is contained in:
Dave Borowitz
2015-10-28 13:03:56 -04:00
parent f0f2533e3e
commit c815d90811
20 changed files with 39 additions and 35 deletions

View File

@@ -77,7 +77,7 @@ public class PutTopic implements RestModifyView<ChangeResource, Input>,
Op op = new Op(ctl, input != null ? input : new Input());
try (BatchUpdate u = batchUpdateFactory.create(dbProvider.get(),
req.getChange().getProject(), ctl.getUser(), TimeUtil.nowTs())) {
u.addOp(req.getChange().getId(), op);
u.addOp(req.getId(), op);
u.execute();
}
return Strings.isNullOrEmpty(op.newTopicName)