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)
})
},
Can I callPromise and applyOptions: {
noRetry: true,} does it work?, if not, what should we use?