Skip to content

Commit

Permalink
correct confusing changelog timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyduke committed Jul 6, 2018
1 parent c06d2c4 commit d23df51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -477,9 +477,6 @@ public String writeChangeEvent(CallContext callContext, String repositoryId, Con
case UPDATED:
change.setTime(content.getModified());
break;
case DELETED:
change.setTime(content.getCreated());
break;
case SECURITY:
change.setTime(content.getModified());
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,12 @@ public CouchChange(){

public CouchChange(Change c){
super(c);
GregorianCalendar time = c.getTime();
setObjectId(c.getObjectId());
Long token = convertChangeToken(c.getToken());
setToken(token);
setChangeType(c.getChangeType());
setTime(c.getCreated());
setTime(time != null ? time : c.getCreated());
setType(c.getType());
setName(c.getName());
setBaseType(c.getBaseType());
Expand Down

0 comments on commit d23df51

Please sign in to comment.