Fix null CRC32s
This commit is contained in:
parent
62e6c25218
commit
0072431226
1 changed files with 2 additions and 2 deletions
|
|
@ -68,7 +68,7 @@ public class MediaImporter(
|
|||
StorageLocation = defaultMediaLocation,
|
||||
SourceUrl = record.SourceUrl,
|
||||
MimeType = record.MimeType,
|
||||
Crc32 = record.Crc32,
|
||||
Crc32 = record.Crc32 ?? String.Empty,
|
||||
};
|
||||
|
||||
media = await mediaService.AddAsync(media);
|
||||
|
|
@ -115,7 +115,7 @@ public class MediaImporter(
|
|||
existing.MimeType = record.MimeType;
|
||||
existing.CreatedOn = record.CreatedOn;
|
||||
existing.UpdatedOn = record.UpdatedOn;
|
||||
existing.Crc32 = record.Crc32;
|
||||
existing.Crc32 = record.Crc32 ?? String.Empty;
|
||||
existing.SourceUrl = record.SourceUrl;
|
||||
|
||||
if (existing.StorageLocation == null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue