Compare commits
No commits in common. "35b64515d767f38913247d58c69893adfc87348e" and "e3022b858766f7b1a8f99ef4f3bced445ccc1ce7" have entirely different histories.
35b64515d7
...
e3022b8587
|
@ -84,27 +84,22 @@ func (i ImportServiceDefault) SaveImport(ctx context.Context, metadata ImportMet
|
||||||
changed := false
|
changed := false
|
||||||
|
|
||||||
if __import.UserID != metadata.UserID {
|
if __import.UserID != metadata.UserID {
|
||||||
__import.UserID = metadata.UserID
|
|
||||||
changed = true
|
changed = true
|
||||||
}
|
}
|
||||||
|
|
||||||
if __import.Status != metadata.Status {
|
if __import.Status != metadata.Status {
|
||||||
__import.Status = metadata.Status
|
|
||||||
changed = true
|
changed = true
|
||||||
}
|
}
|
||||||
|
|
||||||
if __import.Progress != metadata.Progress {
|
if __import.Progress != metadata.Progress {
|
||||||
__import.Progress = metadata.Progress
|
|
||||||
changed = true
|
changed = true
|
||||||
}
|
}
|
||||||
|
|
||||||
if __import.Protocol != metadata.Protocol {
|
if __import.Protocol != metadata.Protocol {
|
||||||
__import.Protocol = metadata.Protocol
|
|
||||||
changed = true
|
changed = true
|
||||||
}
|
}
|
||||||
|
|
||||||
if __import.ImporterIP != metadata.ImporterIP {
|
if __import.ImporterIP != metadata.ImporterIP {
|
||||||
__import.ImporterIP = metadata.ImporterIP
|
|
||||||
changed = true
|
changed = true
|
||||||
}
|
}
|
||||||
if changed {
|
if changed {
|
||||||
|
|
|
@ -93,27 +93,22 @@ func (m *MetadataServiceDefault) SaveUpload(ctx context.Context, metadata Upload
|
||||||
changed := false
|
changed := false
|
||||||
|
|
||||||
if upload.UserID != metadata.UserID {
|
if upload.UserID != metadata.UserID {
|
||||||
upload.UserID = metadata.UserID
|
|
||||||
changed = true
|
changed = true
|
||||||
}
|
}
|
||||||
|
|
||||||
if upload.MimeType != metadata.MimeType {
|
if upload.MimeType != metadata.MimeType {
|
||||||
upload.MimeType = metadata.MimeType
|
|
||||||
changed = true
|
changed = true
|
||||||
}
|
}
|
||||||
|
|
||||||
if upload.Protocol != metadata.Protocol {
|
if upload.Protocol != metadata.Protocol {
|
||||||
upload.Protocol = metadata.Protocol
|
|
||||||
changed = true
|
changed = true
|
||||||
}
|
}
|
||||||
|
|
||||||
if upload.UploaderIP != metadata.UploaderIP {
|
if upload.UploaderIP != metadata.UploaderIP {
|
||||||
upload.UploaderIP = metadata.UploaderIP
|
|
||||||
changed = true
|
changed = true
|
||||||
}
|
}
|
||||||
|
|
||||||
if upload.Size != metadata.Size {
|
if upload.Size != metadata.Size {
|
||||||
upload.Size = metadata.Size
|
|
||||||
changed = true
|
changed = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue