This repository was archived by the owner on Feb 6, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ export interface ApiDeck {
55 id ?: string ;
66 slides : ApiSlide [ ] ;
77 name : string ;
8+ description : string ;
89 owner_id : string ;
910 attributes ?: DeckAttributes ;
1011 background ?: string ;
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ export class PublishService {
7878 return ;
7979 }
8080
81- const apiDeck : ApiDeck = await this . convertDeck ( deck ) ;
81+ const apiDeck : ApiDeck = await this . convertDeck ( deck , description ) ;
8282
8383 this . progress ( 0.25 ) ;
8484
@@ -136,13 +136,14 @@ export class PublishService {
136136 }
137137 }
138138
139- private convertDeck ( deck : Deck ) : Promise < ApiDeck > {
139+ private convertDeck ( deck : Deck , description : string ) : Promise < ApiDeck > {
140140 return new Promise < ApiDeck > ( async ( resolve , reject ) => {
141141 try {
142142 const apiSlides : ApiSlide [ ] = await this . convertSlides ( deck ) ;
143143
144144 const apiDeck : ApiDeck = {
145145 name : deck . data . name ,
146+ description : description !== undefined && description !== '' ? description : deck . data . name ,
146147 owner_id : deck . data . owner_id ,
147148 attributes : deck . data . attributes ,
148149 background : deck . data . background ,
You can’t perform that action at this time.
0 commit comments