Skip to content

Commit

Permalink
feat(GlpiRestClient): get invitations
Browse files Browse the repository at this point in the history
  • Loading branch information
Gianfranco97 authored and Hector Rondon committed Jan 19, 2018
1 parent ad4d75e commit 767c221
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/restclient.js
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,19 @@ class GlpiRestClient {
}
})
}

getInvitations () {
return new Promise( async (resolve, reject) => {
try {
resolve (
await this.getAllItems('PluginFlyvemdmInvitation')
)
}
catch (err) {
reject(err)
}
})
}

}

Expand Down

0 comments on commit 767c221

Please sign in to comment.