Updated ProfileEndpoint
Added an UpdateAsync() call for each subscription, to ensure that subscriptions actually get updated in the database.
This commit is contained in:
parent
c3cd7b5a16
commit
e2d0c327eb
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue