From c1f479a385b165638f32ce6b9635fe9624615f40 Mon Sep 17 00:00:00 2001 From: Sanghyeon Sim <5338095@gmail.com> Date: Sat, 2 Sep 2023 11:03:36 +0900 Subject: [PATCH] chore: version 1.0.1 --- package.json | 2 +- source/api/kakao.js | 5 +++-- source/component/ListShop.js | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 2573ca5..b2573b8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "up-d4te", - "version": "1.0.0", + "version": "1.0.1", "description": "Recommend Dating Course in Korea with CLI", "author": { "name": "Sanghyeon Sim", diff --git a/source/api/kakao.js b/source/api/kakao.js index fc5394f..27e5faf 100644 --- a/source/api/kakao.js +++ b/source/api/kakao.js @@ -4,8 +4,9 @@ import dotenv from 'dotenv'; export const fetchKakaoShops = (query, category) => { dotenv.config(); - const API_KEY = process.env.KAKAO_API_KEY; - + // const API_KEY = process.env.KAKAO_API_KEY; + const API_KEY = "abf86987c958ad34e9313ed7e91008c5"; + const url = `https://dapi.kakao.com/v2/local/search/keyword.json?query=${query}&size=3`; if (category == 'cafe') { diff --git a/source/component/ListShop.js b/source/component/ListShop.js index 329dea9..9c6db79 100644 --- a/source/component/ListShop.js +++ b/source/component/ListShop.js @@ -25,7 +25,7 @@ const ListShop = ({shops, setShops, setType}) => { {'{'} "Status code": 404 "Description": "검색 결과가 없습니다." - {'{'} + {'}'} ) : (