diff options
| author | crupest <crupest@outlook.com> | 2020-08-26 01:19:21 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2020-08-26 01:19:21 +0800 |
| commit | b2404a381178e962a09af018d3c0031f1918991a (patch) | |
| tree | 6e20871c99c93b1054799bc6b46681d2b6f1547e /Timeline/ClientApp/src/app/data/timeline.ts | |
| parent | 9f8c232ef942a070d4449b9d7f075ff66aa2a0c8 (diff) | |
| download | timeline-b2404a381178e962a09af018d3c0031f1918991a.tar.gz timeline-b2404a381178e962a09af018d3c0031f1918991a.tar.bz2 timeline-b2404a381178e962a09af018d3c0031f1918991a.zip | |
No longer wait for saving user, which may lead to delay.
Diffstat (limited to 'Timeline/ClientApp/src/app/data/timeline.ts')
| -rw-r--r-- | Timeline/ClientApp/src/app/data/timeline.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Timeline/ClientApp/src/app/data/timeline.ts b/Timeline/ClientApp/src/app/data/timeline.ts index 0e11b4e7..3eda35f9 100644 --- a/Timeline/ClientApp/src/app/data/timeline.ts +++ b/Timeline/ClientApp/src/app/data/timeline.ts @@ -152,7 +152,7 @@ export class TimelineService { try { const httpTimeline = await getHttpTimelineClient().getTimeline(key); - await userInfoService.saveUsers([ + userInfoService.saveUsers([ httpTimeline.owner, ...httpTimeline.members, ]); @@ -339,7 +339,7 @@ export class TimelineService { userService.currentUser?.token ); - await userInfoService.saveUsers( + userInfoService.saveUsers( uniqBy( httpPosts.map((post) => post.author), "username" @@ -368,7 +368,7 @@ export class TimelineService { (p): p is HttpTimelinePostInfo => !p.deleted ); - await userInfoService.saveUsers( + userInfoService.saveUsers( uniqBy( httpPosts .map((post) => post.author) |
