Compare commits
2 Commits
e3022b8587
...
35b64515d7
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | 35b64515d7 | |
Derrick Hammer | 8d20659a5b |
|
@ -84,22 +84,27 @@ func (i ImportServiceDefault) SaveImport(ctx context.Context, metadata ImportMet
|
|||
changed := false
|
||||
|
||||
if __import.UserID != metadata.UserID {
|
||||
__import.UserID = metadata.UserID
|
||||
changed = true
|
||||
}
|
||||
|
||||
if __import.Status != metadata.Status {
|
||||
__import.Status = metadata.Status
|
||||
changed = true
|
||||
}
|
||||
|
||||
if __import.Progress != metadata.Progress {
|
||||
__import.Progress = metadata.Progress
|
||||
changed = true
|
||||
}
|
||||
|
||||
if __import.Protocol != metadata.Protocol {
|
||||
__import.Protocol = metadata.Protocol
|
||||
changed = true
|
||||
}
|
||||
|
||||
if __import.ImporterIP != metadata.ImporterIP {
|
||||
__import.ImporterIP = metadata.ImporterIP
|
||||
changed = true
|
||||
}
|
||||
if changed {
|
||||
|
|
|
@ -93,22 +93,27 @@ func (m *MetadataServiceDefault) SaveUpload(ctx context.Context, metadata Upload
|
|||
changed := false
|
||||
|
||||
if upload.UserID != metadata.UserID {
|
||||
upload.UserID = metadata.UserID
|
||||
changed = true
|
||||
}
|
||||
|
||||
if upload.MimeType != metadata.MimeType {
|
||||
upload.MimeType = metadata.MimeType
|
||||
changed = true
|
||||
}
|
||||
|
||||
if upload.Protocol != metadata.Protocol {
|
||||
upload.Protocol = metadata.Protocol
|
||||
changed = true
|
||||
}
|
||||
|
||||
if upload.UploaderIP != metadata.UploaderIP {
|
||||
upload.UploaderIP = metadata.UploaderIP
|
||||
changed = true
|
||||
}
|
||||
|
||||
if upload.Size != metadata.Size {
|
||||
upload.Size = metadata.Size
|
||||
changed = true
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue