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');