aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/app/services/timeline.ts
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-01-11 21:54:33 +0800
committercrupest <crupest@outlook.com>2021-01-11 21:54:33 +0800
commit21ee6d4b78566a857559c5e393ae85731d380092 (patch)
tree9deed1bab5913de2e2e31e1b7a8f14e7ee699cf8 /FrontEnd/src/app/services/timeline.ts
parentb01daf806af2980ca980bdcb3190ea54cba0677b (diff)
downloadtimeline-21ee6d4b78566a857559c5e393ae85731d380092.tar.gz
timeline-21ee6d4b78566a857559c5e393ae85731d380092.tar.bz2
timeline-21ee6d4b78566a857559c5e393ae85731d380092.zip
...
Diffstat (limited to 'FrontEnd/src/app/services/timeline.ts')
-rw-r--r--FrontEnd/src/app/services/timeline.ts28
1 files changed, 12 insertions, 16 deletions
diff --git a/FrontEnd/src/app/services/timeline.ts b/FrontEnd/src/app/services/timeline.ts
index 46feb4d9..8bc1d40b 100644
--- a/FrontEnd/src/app/services/timeline.ts
+++ b/FrontEnd/src/app/services/timeline.ts
@@ -189,24 +189,20 @@ export class TimelineService {
return from(getHttpTimelineClient().deleteTimeline(timelineName));
}
- addMember(timelineName: string, username: string): Observable<unknown> {
- return from(
- getHttpTimelineClient()
- .memberPut(timelineName, username)
- .then(() => {
- void this.syncTimeline(timelineName);
- })
- );
+ addMember(timelineName: string, username: string): Promise<void> {
+ return getHttpTimelineClient()
+ .memberPut(timelineName, username)
+ .then(() => {
+ void this.syncTimeline(timelineName);
+ });
}
- removeMember(timelineName: string, username: string): Observable<unknown> {
- return from(
- getHttpTimelineClient()
- .memberDelete(timelineName, username)
- .then(() => {
- void this.syncTimeline(timelineName);
- })
- );
+ removeMember(timelineName: string, username: string): Promise<void> {
+ return getHttpTimelineClient()
+ .memberDelete(timelineName, username)
+ .then(() => {
+ void this.syncTimeline(timelineName);
+ });
}
private generatePostsDataStorageKey(timelineName: string): string {