From 12a28f00b169c66b79b8bab07167e3ade58ffb90 Mon Sep 17 00:00:00 2001 From: Amatsugu Date: Thu, 15 May 2025 17:00:13 -0400 Subject: [PATCH] Update AobaService.cs --- AobaCore/AobaService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AobaCore/AobaService.cs b/AobaCore/AobaService.cs index b3f54a3..4c51792 100644 --- a/AobaCore/AobaService.cs +++ b/AobaCore/AobaService.cs @@ -1,4 +1,4 @@ -using AobaCore.Models; +using AobaCore.Models; using MaybeError.Errors; @@ -34,7 +34,7 @@ public class AobaService(IMongoDatabase db) { return _media.InsertOneAsync(media, null, cancellationToken); } - + public Task IncrementViewCountAsync(ObjectId id, CancellationToken cancellationToken = default) { return _media.UpdateOneAsync(m => m.Id == id, Builders.Update.Inc(m => m.ViewCount, 1), cancellationToken: cancellationToken);