Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let i;
- var arr = ["true"];
- for (i = 1; i < data.length; i++) {
- ticket
- .findOne({
- where: { id: data[i].ticket_id }
- })
- .then(result => {
- const data1 = result.event_id;
- if (data0 === data1) {
- arr.push("true");
- } else {
- arr.push("false");
- }
- console.log(arr);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement