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)
|
if (f == null)
|
||||||
notFound.Add(subscription);
|
notFound.Add(subscription);
|
||||||
else
|
else
|
||||||
|
{
|
||||||
subscription.MapFrom(f);
|
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();
|
var newSubs = (from subscription in profileJson.subscriptions let f = res.subscriptions.FirstOrDefault(s => s.id == subscription.id) where f == null select subscription).ToList();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue