Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#10] hotfix: module path pixed #11

Merged
merged 1 commit into from
Mar 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/lib/mountain-generator/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ module.exports = async function mountainsGenerator() {
const path = require('path');
require('dotenv').config();
const targetPath = path.join(__dirname, '..', '..');
mkdir(`${targetPath}\\public\\data\\result`);
mkdir(`${targetPath}/public/data/result`);
const KAKAO_REST_API_KEY = process.env.KAKAO_REST_API_KEY;
const updatedAt = Date.now();
let totalDataCount = 0;
const resultMap = new Map();
const uniquenessMap = new Map();
const regionKeys = Object.keys(REGION_BASE);
const getTargetPath = (region) => `${targetPath}\\public\\data\\result/${region}.json`;
const TARGET_DIR = `${targetPath}\\public\\data\\result`;
const LOCATION_PATH = `${targetPath}\\public\\data\\result\\location.json`;
const RESULT_PATH = `${targetPath}\\public\\data\\result\\total_count.txt`;
const getTargetPath = (region) => `${targetPath}/public/data/result/${region}.json`;
const TARGET_DIR = `${targetPath}/public/data/result`;
const LOCATION_PATH = `${targetPath}/public/data/result/location.json`;
const RESULT_PATH = `${targetPath}/public/data/result/total_count.txt`;
const sleep = (time) => new Promise((resolve) => setTimeout(resolve, time));

// 검색어, 카테고리 //
Expand Down