{"action":"created","issue":{"url":"https://api.github.com/repos/song940/node-escpos/issues/107","repository_url":"https://api.github.com/repos/song940/node-escpos","labels_url":"https://api.github.com/repos/song940/node-escpos/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/song940/node-escpos/issues/107/comments","events_url":"https://api.github.com/repos/song940/node-escpos/issues/107/events","html_url":"https://github.com/song940/node-escpos/issues/107","id":294164412,"number":107,"title":"Using for loop to print several orders after one another","user":{"login":"OscarWoHA","id":3245494,"avatar_url":"https://avatars0.githubusercontent.com/u/3245494?v=4","gravatar_id":"","url":"https://api.github.com/users/OscarWoHA","html_url":"https://github.com/OscarWoHA","followers_url":"https://api.github.com/users/OscarWoHA/followers","following_url":"https://api.github.com/users/OscarWoHA/following{/other_user}","gists_url":"https://api.github.com/users/OscarWoHA/gists{/gist_id}","starred_url":"https://api.github.com/users/OscarWoHA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OscarWoHA/subscriptions","organizations_url":"https://api.github.com/users/OscarWoHA/orgs","repos_url":"https://api.github.com/users/OscarWoHA/repos","events_url":"https://api.github.com/users/OscarWoHA/events{/privacy}","received_events_url":"https://api.github.com/users/OscarWoHA/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-04T02:43:18Z","updated_at":"2018-02-15T10:04:21Z","closed_at":null,"author_association":"NONE","body":"I simply do not understand why this code prints out the same order twice, instead of printing separate orders? I've been trying different approaches for a couple of days now, but cannot wrap my head around it. \r\n\r\nHere's a gist with the code used..\r\nhttps://gist.github.com/OscarWoHA/0055c9bf745c537d86865447222c4196"},"comment":{"url":"https://api.github.com/repos/song940/node-escpos/issues/comments/365879648","html_url":"https://github.com/song940/node-escpos/issues/107#issuecomment-365879648","issue_url":"https://api.github.com/repos/song940/node-escpos/issues/107","id":365879648,"user":{"login":"Psychopoulet","id":10230963,"avatar_url":"https://avatars1.githubusercontent.com/u/10230963?v=4","gravatar_id":"","url":"https://api.github.com/users/Psychopoulet","html_url":"https://github.com/Psychopoulet","followers_url":"https://api.github.com/users/Psychopoulet/followers","following_url":"https://api.github.com/users/Psychopoulet/following{/other_user}","gists_url":"https://api.github.com/users/Psychopoulet/gists{/gist_id}","starred_url":"https://api.github.com/users/Psychopoulet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Psychopoulet/subscriptions","organizations_url":"https://api.github.com/users/Psychopoulet/orgs","repos_url":"https://api.github.com/users/Psychopoulet/repos","events_url":"https://api.github.com/users/Psychopoulet/events{/privacy}","received_events_url":"https://api.github.com/users/Psychopoulet/received_events","type":"User","site_admin":false},"created_at":"2018-02-15T10:04:21Z","updated_at":"2018-02-15T10:04:21Z","author_association":"COLLABORATOR","body":"maybe because you use it in a synchrone way. try to wait until the end of the \"close\" event (which flush the buffer) before allow new sending, to avoid multiple send to the printer"}}
{"actor":{"display_login":"Psychopoulet"}}