Skip to content

Commit

Permalink
Sandboxing configuration for modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Elanis committed May 5, 2022
1 parent 9620670 commit d8c25cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.server.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { QueryPackageSalesForCSV, QueryWishlistActionsForCSV } from './SteamCSV.js';

const COOKIE_FORMAT = (runAs) => global.config['steam-sold-wishlist'].COOKIE_FORMAT.replace('${runAs}', runAs);
const COOKIE_FORMAT = (runAs) => config.COOKIE_FORMAT.replace('${runAs}', runAs);

export default class SteamSoldWishlist {
static running = false;
Expand Down Expand Up @@ -57,7 +57,7 @@ export default class SteamSoldWishlist {

const dbData = (await Database.execQuery('SELECT * FROM steam_sold')).rows;

for(const currentPackage of global.config['steam-sold-wishlist'].soldPackages) {
for(const currentPackage of config.soldPackages) {
const data = await QueryPackageSalesForCSV({ ...currentPackage, cookie: COOKIE_FORMAT(currentPackage.runAs) });

for(const line of data) {
Expand Down Expand Up @@ -99,7 +99,7 @@ export default class SteamSoldWishlist {

const dbData = (await Database.execQuery('SELECT * FROM steam_wishlists')).rows;

for(const currentPackage of global.config['steam-sold-wishlist'].wishlistApps) {
for(const currentPackage of config.wishlistApps) {
const data = await QueryWishlistActionsForCSV({ ...currentPackage, cookie: COOKIE_FORMAT(currentPackage.runAs) });

for(const line of data) {
Expand Down

0 comments on commit d8c25cb

Please sign in to comment.