From 5b09202bc410af6637a9cf809338f2e2dd31bdf5 Mon Sep 17 00:00:00 2001 From: Ryan Tan Date: Thu, 15 Mar 2018 10:27:48 +0800 Subject: [PATCH] [ryan] update data location --- .gitignore | 6 +++--- {src/data => data}/sample-users.js | 0 {src/data => data}/users.json.sample | 0 src/modules/TelegramBot.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename {src/data => data}/sample-users.js (100%) rename {src/data => data}/users.json.sample (100%) diff --git a/.gitignore b/.gitignore index 990ec7a..e5f7930 100644 --- a/.gitignore +++ b/.gitignore @@ -38,11 +38,11 @@ ehthumbs.db Thumbs.db node_modules -src/data/users.js -src/data/users.json +data/users.js +data/users.json build/ yarn-error.log .idea *.pem -src/data/list +data/list .env diff --git a/src/data/sample-users.js b/data/sample-users.js similarity index 100% rename from src/data/sample-users.js rename to data/sample-users.js diff --git a/src/data/users.json.sample b/data/users.json.sample similarity index 100% rename from src/data/users.json.sample rename to data/users.json.sample diff --git a/src/modules/TelegramBot.js b/src/modules/TelegramBot.js index 0dbe2b5..fa54fa7 100644 --- a/src/modules/TelegramBot.js +++ b/src/modules/TelegramBot.js @@ -13,7 +13,7 @@ import * as CalendarApp from './CalendarApp'; import BookingSteps from './BookingSteps'; // import Logger from './Logger'; -const db = new Loki('src/data/users.json'); +const db = new Loki('data/users.json'); db.loadDatabase({}, () => { console.log('users loaded');