Use correct path when importing archive
This commit is contained in:
parent
b18f07bfc8
commit
de41b1062f
1 changed files with 3 additions and 1 deletions
|
|
@ -156,12 +156,14 @@ public class ArchiveImporter(
|
|||
if (asset is ImportAssetArchiveEntry archiveEntryAsset)
|
||||
{
|
||||
var archive = await archiveService.GetAsync(archiveEntryAsset.RecordId);
|
||||
var archiveEntry = ImportContext.Archive.Entries.FirstOrDefault(e => e.Key == $"Archives/{archive.Id}");
|
||||
var archiveEntry = ImportContext.Archive.Entries.FirstOrDefault(e => e.Key == archiveEntryAsset.Path);
|
||||
|
||||
if (archiveEntry == null)
|
||||
return false;
|
||||
|
||||
await archiveService.WriteToFileAsync(archive, archiveEntry.OpenEntryStream());
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue