addd audio file thumbnail generation
Build and Push Image / build-and-push (push) Successful in 5m1s
Build and Push Image / build-and-push (push) Successful in 5m1s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user