Skip to content

Commit 591a217

Browse files
committed
add change in delete
1 parent cf1ce8f commit 591a217

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

code/go/0chain.net/blobbercore/handler/file_command_delete.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ func (cmd *DeleteFileCommand) IsValidated(ctx context.Context, req *http.Request
6363

6464
// UpdateChange add DeleteFileChange in db
6565
func (cmd *DeleteFileCommand) UpdateChange(ctx context.Context, connectionObj *allocation.AllocationChangeCollector) error {
66-
connectionObj.AddChange(cmd.allocationChange, cmd.changeProcessor)
67-
68-
return connectionObj.Save(ctx)
66+
return cmd.AddChange(ctx)
6967
}
7068

7169
func (cmd *DeleteFileCommand) AddChange(ctx context.Context) error {

0 commit comments

Comments
 (0)