From e2d0c327eb8911aac9cec61d92c6875b31821e8a Mon Sep 17 00:00:00 2001 From: Mario Steele Date: Thu, 31 Jul 2025 12:59:39 -0500 Subject: [PATCH] Updated ProfileEndpoint Added an UpdateAsync() call for each subscription, to ensure that subscriptions actually get updated in the database. --- FreeTubeSync/EndPoints/ProfileEndpoint.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/FreeTubeSync/EndPoints/ProfileEndpoint.cs b/FreeTubeSync/EndPoints/ProfileEndpoint.cs index 7382889..a8ac2df 100644 --- a/FreeTubeSync/EndPoints/ProfileEndpoint.cs +++ b/FreeTubeSync/EndPoints/ProfileEndpoint.cs @@ -51,7 +51,10 @@ public static class ProfileEndpoint if (f == null) notFound.Add(subscription); else + { subscription.MapFrom(f); + await subRepo.UpdateAsync(subscription, ct, false); + } } var newSubs = (from subscription in profileJson.subscriptions let f = res.subscriptions.FirstOrDefault(s => s.id == subscription.id) where f == null select subscription).ToList(); @@ -72,7 +75,7 @@ public static class ProfileEndpoint { res.subscriptions.Remove(nfSub); } - + await repository.UpdateAsync(res, ct); }