addd audio file thumbnail generation
Build and Push Image / build-and-push (push) Successful in 5m1s

This commit is contained in:
2026-05-01 02:16:54 -04:00
parent 14a6e18966
commit 90078a0f62
4 changed files with 48 additions and 5 deletions
+6
View File
@@ -87,6 +87,12 @@ public class AobaService(IMongoDatabase db)
}
public async Task SetMediaTypeAsync(ObjectId mediaId, MediaType type, CancellationToken cancellationToken = default)
{
var update = Builders<Media>.Update.Set(m => m.MediaType, type);
await _media.UpdateOneAsync(m => m.MediaId == mediaId, update, null, cancellationToken);
}
public async Task<Maybe<Media>> UploadFileAsync(Stream data, string filename, ObjectId owner, CancellationToken cancellationToken = default)
{
try