Skip to content

Commit

Permalink
Suggestion for #704
Browse files Browse the repository at this point in the history
  • Loading branch information
tarjeieo committed Jul 6, 2022
1 parent 29d593d commit e6f7564
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export class PlannerConfiguration extends BaseTask {
const tasks = Object.keys(this._configuration[bucket.name])
for (let i = 0; i < tasks.length; i++) {
const name = tasks[i]
const { checklist, attachments } = this._configuration[bucket.name][name]
const { checklist, attachments, description, previewType } = this._configuration[bucket.name][name]
try {
this.logInformation(`Creating task ${name} in bucket ${bucket.name}`)
const task = await MSGraphHelper.Post(
Expand Down Expand Up @@ -208,7 +208,8 @@ export class PlannerConfiguration extends BaseTask {
{}
)
: {},
previewType: attachments ? 'reference' : 'checklist'
previewType: previewType,
description: description
}
this.logInformation(
`Updating task details for ${name} in bucket ${bucket.name}`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ export class TaskAttachment {
export interface ITaskDetails {
checklist?: string[]
attachments?: TaskAttachment[]
previewType?: string
description?: string
}

export interface IPlannerConfiguration {
Expand Down

0 comments on commit e6f7564

Please sign in to comment.