File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
components/microsoft_outlook Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @pipedream/microsoft_outlook" ,
3- "version" : " 1.0.3 " ,
3+ "version" : " 1.0.4 " ,
44 "description" : " Pipedream Microsoft Outlook Components" ,
55 "main" : " microsoft_outlook.app.mjs" ,
66 "keywords" : [
Original file line number Diff line number Diff line change @@ -34,11 +34,13 @@ export default {
3434 async getSampleEvents ( { pageSize } ) {
3535 const folders = this . folderIds ?. length
3636 ? this . folderIds . map ( ( id ) => `/me/mailFolders/${ id } /messages` )
37- : [ "/me/messages" ] ;
37+ : [
38+ "/me/messages" ,
39+ ] ;
3840
3941 const results = [ ] ;
4042 for ( const folder of folders ) {
41- const messages = await this . microsoftOutlook . listMessages ( {
43+ const { value : messages } = await this . microsoftOutlook . listMessages ( {
4244 resource : folder ,
4345 params : {
4446 $top : pageSize ,
@@ -51,8 +53,10 @@ export default {
5153 } ,
5254 emitEvent ( item ) {
5355 this . $emit (
54- { email : item } ,
55- this . generateMeta ( item )
56+ {
57+ email : item ,
58+ } ,
59+ this . generateMeta ( item ) ,
5660 ) ;
5761 } ,
5862 generateMeta ( item ) {
@@ -66,7 +70,9 @@ export default {
6670 async run ( event ) {
6771 const folders = this . folderIds ?. length
6872 ? this . folderIds . map ( ( id ) => `/me/mailFolders/${ id } /messages` )
69- : [ "/me/messages" ] ;
73+ : [
74+ "/me/messages" ,
75+ ] ;
7076
7177 for ( const folder of folders ) {
7278 await this . run ( {
You can’t perform that action at this time.
0 commit comments