Skip to content

Commit ee58d0b

Browse files
committed
delay for image/articile
1 parent 738f510 commit ee58d0b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

LearningHub.Nhs.WebUI/Controllers/ResourceController.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ public async Task<IActionResult> Index(int resourceReferenceId, bool? acceptSens
189189
ActivityStart = DateTime.UtcNow, // TODO: What about user's timezone offset when Javascript is disabled? Needs JavaScript.
190190
ActivityStatus = ActivityStatusEnum.Completed,
191191
};
192+
193+
// setting time delay to avoid multiple records in same time-TD-4299
194+
await Task.Delay(10000);
192195
await this.activityService.CreateResourceActivityAsync(activity);
193196
}
194197

0 commit comments

Comments
 (0)