은승우

Update app.js

Showing 1 changed file with 2 additions and 2 deletions
...@@ -89,7 +89,7 @@ async function handleEvent(event) { ...@@ -89,7 +89,7 @@ async function handleEvent(event) {
89 client.getMessageContent(event.message.id) 89 client.getMessageContent(event.message.id)
90 .then((stream) => { 90 .then((stream) => {
91 stream.on('data', (chunk) => { 91 stream.on('data', (chunk) => {
92 - fs.writeFileSync('/photo/1.png',chunk); 92 + fs.writeFileSync('./photo/1.png',chunk);
93 }); 93 });
94 }); 94 });
95 95
...@@ -106,7 +106,7 @@ async function handleEvent(event) { ...@@ -106,7 +106,7 @@ async function handleEvent(event) {
106 'Content-Type': 'application/json', 106 'Content-Type': 'application/json',
107 'Ocp-Apim-Subscription-Key': '979dc5d63344438fa4701c62feebb7dc' 107 'Ocp-Apim-Subscription-Key': '979dc5d63344438fa4701c62feebb7dc'
108 }, 108 },
109 - body: fs.readFileSync('/photo/1.png') 109 + body: fs.readFileSync('./photo/1.png')
110 }; 110 };
111 console.log(body); 111 console.log(body);
112 request.post(options, function (error, response, body) { 112 request.post(options, function (error, response, body) {
......