Skip to content

Example Async/Await #123

Closed Answered by anoopgcmz
anoopgcmz asked this question in Q&A
Discussion options

You must be logged in to vote

Resolved it

`return new Promise((resolve, reject)=> {

		R.execute(options, function (data) {
		
			sails.log(data);
			if (data.result) {
				resolve());
			} else {
				resolve();
			}
		});
	});`

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by anoopgcmz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant