fix: Fixed most imports and some typescript changes

This commit is contained in:
Marius Begby committed 2023-08-27 00:39:03 +02:00
1 parent 1a7f800ba2
commit 0d9f4bd404
60 files changed
+488 -265

No files matched your search

+1
View File
@@ -1,5 +1,6 @@
import path from 'node:path';
import fs from 'node:fs';
/* eslint-disable @typescript-eslint/no-var-requires */
const cookies = require(path.resolve('./cookies.json'));
try {
+3 -2
View File
@@ -1,7 +1,8 @@
import https from 'node:https';
import loggerModule from '../../services/logger';
exports.postBotStats = async ({ client, executionId }) => {
const logger = require('../../services/logger').child({
export const postBotStats = async ({ client, executionId }) => {
const logger = loggerModule.child({
source: 'postBotStats.js',
module: 'utilOther',
name: 'postBotStats',
+3 -2
View File
@@ -1,8 +1,9 @@
import config from 'config';
import loggerModule from '../../services/logger';
const loadTestOptions = config.get('loadTestOptions');
exports.startLoadTest = async ({ client, executionId }) => {
const logger = require('../../services/logger').child({
export const startLoadTest = async ({ client, executionId }) => {
const logger = loggerModule.child({
source: 'startLoadTest.js',
module: 'utilOther',
name: 'startLoadTest',