Skip to content

Commit

Permalink
Do not send empty node
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed May 31, 2018
1 parent e9cb76d commit ee74336
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions data/changes/rest/handler.go
Expand Up @@ -301,6 +301,12 @@ func (h Handler) enrichChange(ctx context.Context, change *tree.SyncChange, inde
change.Node = &tree.SyncChangeNode{}

if change.Type == tree.SyncChange_delete {
change.Node = &tree.SyncChangeNode{
Bytesize: 0,
Mtime: 0,
Md5: "deleted",
NodePath: change.Source,
}
return nil
}

Expand Down

0 comments on commit ee74336

Please sign in to comment.