이승규

socketio.js 들여쓰기 수정

...@@ -31,17 +31,17 @@ module.exports = (server, app) => { ...@@ -31,17 +31,17 @@ module.exports = (server, app) => {
31 url: `https://api2.sktelecom.com/weather/${when}/${what}?appKey=${secret_key}&lat=${lat}&lon=${lon}`, 31 url: `https://api2.sktelecom.com/weather/${when}/${what}?appKey=${secret_key}&lat=${lat}&lon=${lon}`,
32 json: true 32 json: true
33 }, 33 },
34 - //api에게 응답 받았을때 실행되는 callback function 34 + //api에게 응답 받았을때 실행되는 callback function
35 - function (err, api_res, api_body) { 35 + function (err, api_res, api_body) {
36 - //err 존재시 promise reject 호출 36 + //err 존재시 promise reject 호출
37 - if (err) reject(err); 37 + if (err) reject(err);
38 - 38 +
39 - // api의 response이 있을경우 promise resolve 호출 39 + // api의 response이 있을경우 promise resolve 호출
40 - if (api_res) { 40 + if (api_res) {
41 - console.log("calling api"); 41 + console.log("calling api");
42 - resolve(api_body); 42 + resolve(api_body);
43 - } 43 + }
44 - }); 44 + });
45 }) 45 })
46 46
47 } 47 }
......