Skip to content

How to call method with callPromise with applyOptions? #89

Description

@phanchanra

How can we use method with callPromise applyOption not to retry

applyOptions: {
noRetry: true, // <-- Tell Meteor not to retry
},

this is method on server

export const journal = new ValidatedMethod({
name: 'app.journa',
mixins: [CallPromiseMixin],
applyOptions: {
noRetry: true, // <-- Tell Meteor not to retry
},
validate: null,
async run() {
// code here
}
})

this is client call

journal.callPromise()
.then(res => { console.log('res', res)
}).catch(err => {
console.log('err', err)
})
},

notRetry working with callPromise or Meteor.apply

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions