mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-09-27 02:16:26 +02:00
Set default mimetype in migration
This commit is contained in:
@@ -61,6 +61,7 @@ public class MigrateToPostgres : IMigration
|
||||
{
|
||||
try
|
||||
{
|
||||
file.MimeType ??= "application/octet-stream";
|
||||
await _fileMetadata.Set(file.Id, file);
|
||||
await localDiskMetaStore.Delete(file.Id);
|
||||
_logger.LogInformation("Migrated file metadata for {File}", file.Id);
|
||||
|
Reference in New Issue
Block a user