Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 0704ee3

Browse files
feat(#341): pass api deck id for put
1 parent 5016b0a commit 0704ee3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

studio/src/app/services/api/presentation/api.presentation.service.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ export class ApiPresentationService {
3030
return this.query(deck, '/presentations', 'POST');
3131
}
3232

33-
put(deck: ApiDeck, bearer?: string): Promise<ApiPresentation> {
34-
return this.query(deck, `/presentations/${deck.id}`, 'PUT', bearer);
33+
put(apiDeckId: string, deck: ApiDeck, bearer?: string): Promise<ApiPresentation> {
34+
return this.query(deck, `/presentations/${apiDeckId}`, 'PUT', bearer);
3535
}
3636

3737
private query(deck: ApiDeck, context: string, method: string, bearer?: string): Promise<ApiPresentation> {

studio/src/app/services/editor/publish/publish.service.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export class PublishService {
130130

131131
private createOrUpdatePublish(deck: Deck, apiDeck: ApiDeck): Promise<ApiPresentation> {
132132
if (deck.data.api_id) {
133-
return this.apiPresentationService.put(apiDeck);
133+
return this.apiPresentationService.put(deck.data.api_id, apiDeck);
134134
} else {
135135
return this.apiPresentationService.post(apiDeck);
136136
}

0 commit comments

Comments
 (0)