Skip to content

Commit 1ee0767

Browse files
committed
fix: return retry policy fields from subscription Get/Search
Get.cs and Search.cs never mapped RetryPolicyId/CustomRetryPolicy onto the response, so a saved retry policy vanished on refresh even though the write path was correct.
1 parent e78af90 commit 1ee0767

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

SW.Bitween.Api/Resources/Subscriptions/Get.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ public async Task<object> Handle(int key)
6262
CategoryCode = subscriber.Category?.Code,
6363
CategoryId = subscriber.CategoryId,
6464
WorkGroupId = subscriber.WorkGroupId,
65+
RetryPolicyId = subscriber.RetryPolicyId,
66+
CustomRetryPolicy = subscriber.CustomRetryPolicy,
6567
Schedules = subscriber.Schedules.Select(s => new ScheduleView
6668
{
6769
Backwards = s.Backwards,

SW.Bitween.Api/Resources/Subscriptions/Search.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ join document in _dbContext.Set<Document>() on subscriber.DocumentId equals docu
6262
WorkGroupId = subscriber.WorkGroupId,
6363
CategoryDescription = subscriber.Category.Description,
6464
CategoryCode = subscriber.Category.Code,
65-
65+
RetryPolicyId = subscriber.RetryPolicyId,
66+
CustomRetryPolicy = subscriber.CustomRetryPolicy,
67+
6668
};
6769

6870
query = query.AsNoTracking().AsQueryable();

0 commit comments

Comments
 (0)