Update output from socket to use checksum
This commit is contained in:
parent
7287b8e198
commit
3489088703
|
@ -97,7 +97,8 @@ func (s *Server) Backup(b backup.BackupInterface) error {
|
|||
s.Events().PublishJson(BackupCompletedEvent+":"+b.Identifier(), map[string]interface{}{
|
||||
"uuid": b.Identifier(),
|
||||
"is_successful": false,
|
||||
"sha256_hash": "",
|
||||
"checksum": "",
|
||||
"checksum_type": "sha1",
|
||||
"file_size": 0,
|
||||
})
|
||||
|
||||
|
@ -117,7 +118,8 @@ func (s *Server) Backup(b backup.BackupInterface) error {
|
|||
s.Events().PublishJson(BackupCompletedEvent+":"+b.Identifier(), map[string]interface{}{
|
||||
"uuid": b.Identifier(),
|
||||
"is_successful": true,
|
||||
"sha256_hash": ad.Checksum,
|
||||
"checksum": ad.Checksum,
|
||||
"checksum_type": "sha1",
|
||||
"file_size": ad.Size,
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user