Created
January 12, 2018 16:23
-
-
Save prinzdezibel/0ad9965be61b612df3c4c47e4bcfeafb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
methods.loadShops = function () { | |
Logger.info("Starting load Shops"); | |
if (!checkForShops()) { | |
const shops = require("../private/data/Shops.json"); | |
shops.forEach((shop) => { | |
Shops.insert(shop); | |
Logger.info(`Inserted shop: ${shop.name}`); | |
}); | |
Logger.info("Shops loaded"); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment