Fix incorrect dispose
Some checks failed
Build and Push Image / build-and-push (push) Has been cancelled

This commit is contained in:
2025-07-23 16:22:09 -04:00
parent 3dca408356
commit f98429159f

View File

@@ -125,9 +125,9 @@ public class ThumbnailService(IMongoDatabase db, AobaService aobaService)
Size = new Size(300, 300)
});
});
img.Value.Dispose();
var result = new MemoryStream();
await img.Value.SaveAsWebpAsync(result, cancellationToken);
img.Value.Dispose();
result.Position = 0;
return result;
}