mirror of
https://github.com/fergalmoran/podnoms.git
synced 2025-12-25 10:47:51 +00:00
Fixed local file passing
This commit is contained in:
@@ -72,11 +72,11 @@ namespace PodNoms.Api.Controllers
|
||||
Podcast = podcast
|
||||
};
|
||||
|
||||
entry.AudioUrl = await CachedFormFileStorage.CacheItem(file);
|
||||
var localFile = await CachedFormFileStorage.CacheItem(file);
|
||||
await _entryRepository.AddOrUpdateAsync(entry);
|
||||
await _unitOfWork.CompleteAsync();
|
||||
|
||||
BackgroundJob.Enqueue<IAudioUploadProcessService>(service => service.UploadAudio(entry.Id));
|
||||
BackgroundJob.Enqueue<IAudioUploadProcessService>(service => service.UploadAudio(entry.Id, localFile));
|
||||
return new OkObjectResult(_mapper.Map<PodcastEntry, PodcastEntryViewModel>(entry));
|
||||
}
|
||||
return NotFound();
|
||||
|
||||
Reference in New Issue
Block a user