Skip to content

Commit

Permalink
[TECH] ♻️ Déplacement du logger dans le répertoire src
Browse files Browse the repository at this point in the history
  • Loading branch information
pix-service-auto-merge authored Mar 5, 2024
2 parents c17d840 + 08139d5 commit b6f6d37
Show file tree
Hide file tree
Showing 78 changed files with 77 additions and 79 deletions.
2 changes: 1 addition & 1 deletion api/db/batch-processing.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const BATCH_SIZE = 10;
import { logger } from '../lib/infrastructure/logger.js';
import { logger } from '../src/shared/infrastructure/utils/logger.js';

function batch(knex, elementsToUpdate, treatment) {
function _innerTreatment(knex, remainingElementsToUpdate, countOfBatches, batchesDone) {
Expand Down
2 changes: 1 addition & 1 deletion api/db/knex-database-connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const types = pg.types;
import _ from 'lodash';

const { get } = _;
import { logger } from '../lib/infrastructure/logger.js';
import { logger } from '../src/shared/infrastructure/utils/logger.js';
import { monitoringTools } from '../lib/infrastructure/monitoring-tools.js';
import { config } from '../lib/config.js';
import perf_hooks from 'perf_hooks';
Expand Down
2 changes: 1 addition & 1 deletion api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { validateEnvironmentVariables } from './lib/infrastructure/validate-envi
validateEnvironmentVariables();

import { createServer } from './server.js';
import { logger } from './lib/infrastructure/logger.js';
import { logger } from './src/shared/infrastructure/utils/logger.js';
import { disconnect } from './db/knex-database-connection.js';
import { learningContentCache } from './lib/infrastructure/caches/learning-content-cache.js';
import { temporaryStorage } from './lib/infrastructure/temporary-storage/index.js';
Expand Down
2 changes: 1 addition & 1 deletion api/lib/application/cache/cache-controller.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as LearningContentDatasources from '../../infrastructure/datasources/learning-content/index.js';
import * as learningContentDatasource from '../../infrastructure/datasources/learning-content/datasource.js';
import { logger } from '../../infrastructure/logger.js';
import { logger } from '../../../src/shared/infrastructure/utils/logger.js';
import _ from 'lodash';

const refreshCacheEntries = function (_, h, dependencies = { learningContentDatasource }) {
Expand Down
2 changes: 1 addition & 1 deletion api/lib/application/lcms/lcms-controller.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { usecases } from '../../domain/usecases/index.js';
import { logger } from '../../infrastructure/logger.js';
import { logger } from '../../../src/shared/infrastructure/utils/logger.js';

const createRelease = async function (request, h) {
usecases
Expand Down
2 changes: 1 addition & 1 deletion api/lib/application/saml/saml-controller.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as saml from '../../infrastructure/saml.js';
import { usecases } from '../../domain/usecases/index.js';
import { logger } from '../../infrastructure/logger.js';
import { logger } from '../../../src/shared/infrastructure/utils/logger.js';
import { tokenService } from '../../../src/shared/domain/services/token-service.js';
import { config } from '../../config.js';

Expand Down
2 changes: 1 addition & 1 deletion api/lib/application/sessions/session-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { getSessionCertificationResultsCsv } from '../../infrastructure/utils/cs
import { fillCandidatesImportSheet } from '../../infrastructure/files/candidates-import/fill-candidates-import-sheet.js';
import lodash from 'lodash';
import { UserLinkedToCertificationCandidate } from '../../domain/events/UserLinkedToCertificationCandidate.js';
import { logger } from '../../infrastructure/logger.js';
import { logger } from '../../../src/shared/infrastructure/utils/logger.js';

const { trim } = lodash;

Expand Down
2 changes: 1 addition & 1 deletion api/lib/domain/events/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import * as userRepository from '../../../src/shared/infrastructure/repositories
import { participantResultsSharedRepository } from '../../infrastructure/repositories/participant-results-shared-repository.js';
import * as juryCertificationSummaryRepository from '../../infrastructure/repositories/jury-certification-summary-repository.js';
import * as finalizedSessionRepository from '../../../src/certification/session/infrastructure/repositories/finalized-session-repository.js';
import { logger } from '../../infrastructure/logger.js';
import { logger } from '../../../src/shared/infrastructure/utils/logger.js';
import * as poleEmploiNotifier from '../../infrastructure/externals/pole-emploi/pole-emploi-notifier.js';
import * as disabledPoleEmploiNotifier from '../../infrastructure/externals/pole-emploi/disabled-pole-emploi-notifier.js';
import { handleAutoJury } from './handle-auto-jury.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import jsonwebtoken from 'jsonwebtoken';
import { randomUUID } from 'crypto';
import { Issuer } from 'openid-client';

import { logger } from '../../../infrastructure/logger.js';
import { logger } from '../../../../src/shared/infrastructure/utils/logger.js';
import { OidcMissingFieldsError } from '../../errors.js';
import { AuthenticationMethod } from '../../models/AuthenticationMethod.js';
import { AuthenticationSessionContent } from '../../models/AuthenticationSessionContent.js';
Expand Down
2 changes: 1 addition & 1 deletion api/lib/domain/services/session-publication-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import lodash from 'lodash';

const { some, uniqBy } = lodash;

import { logger } from '../../infrastructure/logger.js';
import { logger } from '../../../src/shared/infrastructure/utils/logger.js';
import { status } from '../../../src/shared/domain/models/AssessmentResult.js';

/**
Expand Down
2 changes: 1 addition & 1 deletion api/lib/domain/services/solution-service-qrocm-ind.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import jsYaml from 'js-yaml';
import levenshtein from 'fast-levenshtein';
import { _ } from '../../infrastructure/utils/lodash-utils.js';
import { logger } from '../../infrastructure/logger.js';
import { logger } from '../../../src/shared/infrastructure/utils/logger.js';
import { applyPreTreatments, applyTreatments } from './validation-treatments.js';
import { YamlParsingError } from '../../domain/errors.js';
import { LEVENSHTEIN_DISTANCE_MAX_RATE } from '../../../src/shared/domain/constants.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {

import { Examiner } from '../../../src/shared/domain/models/Examiner.js';
import { KnowledgeElement } from '../models/KnowledgeElement.js';
import { logger } from '../../infrastructure/logger.js';
import { logger } from '../../../src/shared/infrastructure/utils/logger.js';
import { ForbiddenAccess } from '../../../src/shared/domain/errors.js';

const correctAnswerThenUpdateAssessment = async function ({
Expand Down
2 changes: 1 addition & 1 deletion api/lib/domain/usecases/get-next-challenge-for-demo.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AssessmentEndedError } from '../errors.js';
import { _ } from '../../infrastructure/utils/lodash-utils.js';
import { logger } from '../../infrastructure/logger.js';
import { logger } from '../../../src/shared/infrastructure/utils/logger.js';

const getNextChallengeForDemo = function ({ assessment, answerRepository, challengeRepository, courseRepository }) {
const courseId = assessment.courseId;
Expand Down
2 changes: 1 addition & 1 deletion api/lib/domain/usecases/update-expired-password.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { get } = lodash;

import { NON_OIDC_IDENTITY_PROVIDERS } from '../constants/identity-providers.js';
import { UserNotFoundError } from '../../domain/errors.js';
import { logger } from '../../../lib/infrastructure/logger.js';
import { logger } from '../../../src/shared/infrastructure/utils/logger.js';
import { ForbiddenAccess } from '../../../src/shared/domain/errors.js';

const updateExpiredPassword = async function ({
Expand Down
2 changes: 1 addition & 1 deletion api/lib/domain/usecases/update-last-question-state.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { logger } from '../../infrastructure/logger.js';
import { logger } from '../../../src/shared/infrastructure/utils/logger.js';
import { Assessment } from '../../../src/shared/domain/models/Assessment.js';

const updateLastQuestionState = async function ({
Expand Down
2 changes: 1 addition & 1 deletion api/lib/infrastructure/caches/RedisCache.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { using } = bluebird;
import Redlock from 'redlock';
import { Cache } from './Cache.js';
import { RedisClient } from '../utils/RedisClient.js';
import { logger } from '../logger.js';
import { logger } from '../../../src/shared/infrastructure/utils/logger.js';
import { config } from '../../config.js';
import { applyPatch } from './apply-patch.js';

Expand Down
2 changes: 1 addition & 1 deletion api/lib/infrastructure/jobs/JobQueue.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { MonitoredJobHandler } from './monitoring/MonitoredJobHandler.js';
import { logger } from '../logger.js';
import { logger } from '../../../src/shared/infrastructure/utils/logger.js';
import { config } from '../../config.js';

const { teamSize, teamConcurrency } = config.pgBoss;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { config } from '../../../../config.js';
import { logger } from '../../../logger.js';
import { logger } from '../../../../../src/shared/infrastructure/utils/logger.js';

const { cpf } = config;
const sendEmail = async function ({ getPreSignedUrls, mailService }) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { cpfExport } from './index.js';
import { logger } from '../../logger.js';
import { logger } from '../../../../src/shared/infrastructure/utils/logger.js';
import { config } from '../../../config.js';
const { plannerJob, sendEmailJob } = config.cpf;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { MonitoringJobExecutionTimeHandler } from './MonitoringJobExecutionTimeHandler.js';
import { logger } from '../../logger.js';
import { logger } from '../../../../src/shared/infrastructure/utils/logger.js';
import { config } from '../../../config.js';

const { teamSize, teamConcurrency } = config.pgBoss;
Expand Down
2 changes: 1 addition & 1 deletion api/lib/infrastructure/lcms.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { httpAgent } from './http/http-agent.js';
import { config } from '../config.js';
import { logger } from './logger.js';
import { logger } from '../../src/shared/infrastructure/utils/logger.js';

const { lcms: lcmsConfig } = config;
const getLatestRelease = async function () {
Expand Down
2 changes: 0 additions & 2 deletions api/lib/infrastructure/logger.js

This file was deleted.

2 changes: 1 addition & 1 deletion api/lib/infrastructure/monitoring-tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { config } from '../config.js';
import lodash from 'lodash';

const { get, set, update, omit } = lodash;
import { logger } from '../infrastructure/logger.js';
import { logger } from '../../src/shared/infrastructure/utils/logger.js';
import * as requestResponseUtils from '../infrastructure/utils/request-response-utils.js';

import async_hooks from 'async_hooks';
Expand Down
2 changes: 1 addition & 1 deletion api/lib/infrastructure/plugins/pino.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { stdSerializers } from 'pino';
import crypto from 'crypto';
import { config } from '../../config.js';
import { monitoringTools } from '../monitoring-tools.js';
import { logger } from '../logger.js';
import { logger } from '../../../src/shared/infrastructure/utils/logger.js';

const serializersSym = Symbol.for('pino.serializers');

Expand Down
2 changes: 1 addition & 1 deletion api/lib/infrastructure/saml.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ samlify.setSchemaValidator({
return true;
},
});
import { logger } from './logger.js';
import { logger } from '../../src/shared/infrastructure/utils/logger.js';
import { config } from '../config.js';

const samlSettings = config.saml;
Expand Down
2 changes: 1 addition & 1 deletion api/lib/infrastructure/serializers/csv/csv-serializer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { logger } from '../../logger.js';
import { logger } from '../../../../src/shared/infrastructure/utils/logger.js';
import { FileValidationError } from '../../../../lib/domain/errors.js';
import { convertDateValue } from '../../../../src/shared/infrastructure/utils/date-utils.js';
import { headers, emptySession, COMPLEMENTARY_CERTIFICATION_SUFFIX } from '../../utils/csv/sessions-import.js';
Expand Down
2 changes: 1 addition & 1 deletion api/lib/infrastructure/utils/RedisClient.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Redis from 'ioredis';
import Redlock from 'redlock';

import { logger } from '../logger.js';
import { logger } from '../../../src/shared/infrastructure/utils/logger.js';

class RedisClient {
constructor(redisUrl, { name, prefix } = {}) {
Expand Down
2 changes: 1 addition & 1 deletion api/scripts/_template.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as url from 'url';

const { performance } = perf_hooks;

import { logger } from '../lib/infrastructure/logger.js';
import { logger } from '../src/shared/infrastructure/utils/logger.js';
import { learningContentCache as cache } from '../lib/infrastructure/caches/learning-content-cache.js';
import { knex, disconnect } from '../db/knex-database-connection.js';

Expand Down
2 changes: 1 addition & 1 deletion api/scripts/certification/fill-issue-report-category-id.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { logger } from '../../lib/infrastructure/logger.js';
import { logger } from '../../src/shared/infrastructure/utils/logger.js';
import { knex, disconnect } from '../../db/knex-database-connection.js';
import bluebird from 'bluebird';
import * as url from 'url';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import dotenv from 'dotenv';

dotenv.config();
import { logger } from '../../lib/infrastructure/logger.js';
import { logger } from '../../src/shared/infrastructure/utils/logger.js';
import { learningContentCache as cache } from '../../lib/infrastructure/caches/learning-content-cache.js';
import { knex, disconnect } from '../../db/knex-database-connection.js';
import bluebird from 'bluebird';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import perf_hooks from 'perf_hooks';

const { performance } = perf_hooks;

import { logger } from '../../lib/infrastructure/logger.js';
import { logger } from '../../src/shared/infrastructure/utils/logger.js';
import { learningContentCache as cache } from '../../lib/infrastructure/caches/learning-content-cache.js';
import { knex, disconnect } from '../../db/knex-database-connection.js';
import yargs from 'yargs';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import fs from 'fs';
import bluebird from 'bluebird';
import lodash from 'lodash';
const { isEmpty } = lodash;
import { logger } from '../../lib/infrastructure/logger.js';
import { logger } from '../../src/shared/infrastructure/utils/logger.js';
import { usecases } from '../../lib/domain/usecases/index.js';
import { temporaryStorage } from '../../lib/infrastructure/temporary-storage/index.js';
import { disconnect } from '../../db/knex-database-connection.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as dotenv from 'dotenv';

dotenv.config({ path: `${__dirname}/../.env` });

import { logger } from '../../lib/infrastructure/logger.js';
import { logger } from '../../src/shared/infrastructure/utils/logger.js';
import { usecases } from '../../lib/domain/usecases/index.js';
import { learningContentCache as cache } from '../../lib/infrastructure/caches/learning-content-cache.js';
import * as placementProfileService from '../../lib/domain/services/placement-profile-service.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import dotenv from 'dotenv';

dotenv.config();
import { logger } from '../../lib/infrastructure/logger.js';
import { logger } from '../../src/shared/infrastructure/utils/logger.js';

/**
* Usage: node scripts/import-certification-cpf-cities path/file.csv
Expand Down
2 changes: 1 addition & 1 deletion api/scripts/certification/launch-auto-jury-for-session.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import * as certificationIssueReportRepository from '../../src/certification/sha
import * as certificationCourseRepository from '../../src/certification/shared/infrastructure/repositories/certification-course-repository.js';
import { handleAutoJury } from '../../lib/domain/events/handle-auto-jury.js';
import * as events from '../../lib/domain/events/index.js';
import { logger } from '../../lib/infrastructure/logger.js';
import { logger } from '../../src/shared/infrastructure/utils/logger.js';
import * as url from 'url';

const modulePath = url.fileURLToPath(import.meta.url);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { logger } from '../../../lib/infrastructure/logger.js';
import { logger } from '../../../src/shared/infrastructure/utils/logger.js';
import { disconnect } from '../../../db/knex-database-connection.js';
import * as flashAlgorithmConfigurationRepository from '../../../src/certification/flash-certification/infrastructure/repositories/flash-algorithm-configuration-repository.js';
import * as url from 'url';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import dotenv from 'dotenv';
dotenv.config();

import bluebird from 'bluebird';
import { logger } from '../../lib/infrastructure/logger.js';
import { logger } from '../../src/shared/infrastructure/utils/logger.js';
import * as sessionRepository from '../../src/certification/session/infrastructure/repositories/session-repository.js';
import * as certificationCenterRepository from '../../src/certification/shared/infrastructure/repositories/certification-center-repository.js';
import * as mailService from '../../lib/domain/services/mail-service.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as certificationIssueReportRepository from '../../src/certification/sha
import * as certificationAssessmentRepository from '../../src/certification/shared/infrastructure/repositories/certification-assessment-repository.js';
import * as certificationCourseRepository from '../../src/certification/shared/infrastructure/repositories/certification-course-repository.js';
import * as challengeRepository from '../../src/shared/infrastructure/repositories/challenge-repository.js';
import { logger } from '../../lib/infrastructure/logger.js';
import { logger } from '../../src/shared/infrastructure/utils/logger.js';
import { SessionFinalized } from '../../lib/domain/events/SessionFinalized.js';
import { eventDispatcher } from '../../lib/domain/events/index.js';
import * as url from 'url';
Expand Down
2 changes: 1 addition & 1 deletion api/scripts/certification/update-certification-infos.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import bluebird from 'bluebird';

import { readFile } from 'fs/promises';

import { logger } from '../../lib/infrastructure/logger.js';
import { logger } from '../../src/shared/infrastructure/utils/logger.js';
// Usage: node scripts/update-certifications-infos path/data.csv path/sessionsId.csv
// data.csv
// #externalId,birthdate,birthINSEECode,birthPostalCode,birthCity,birthCountry
Expand Down
2 changes: 1 addition & 1 deletion api/scripts/certification/validate-cpf-xml.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { parseXml } from 'libxmljs2';
import { readFile } from 'fs/promises';
import * as url from 'url';
import { logger } from '../../lib/infrastructure/logger.js';
import { logger } from '../../src/shared/infrastructure/utils/logger.js';

const __dirname = url.fileURLToPath(new URL('.', import.meta.url));

Expand Down
2 changes: 1 addition & 1 deletion api/scripts/data-generation/generate-certif-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import bluebird from 'bluebird';
import lodash from 'lodash';

const { maxBy } = lodash;
import { logger } from '../../lib/infrastructure/logger.js';
import { logger } from '../../src/shared/infrastructure/utils/logger.js';
import { getNewSessionCode } from '../../src/certification/session/domain/services/session-code-service.js';
import { temporaryStorage } from '../../lib/infrastructure/temporary-storage/index.js';
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import yargs from 'yargs';
import { hideBin } from 'yargs/helpers';

import { knex, disconnect } from '../../../db/knex-database-connection.js';
import { logger } from '../../../lib/infrastructure/logger.js';
import { logger } from '../../../src/shared/infrastructure/utils/logger.js';
import { learningContentCache } from '../../../lib/infrastructure/caches/learning-content-cache.js';

async function main() {
Expand Down
2 changes: 1 addition & 1 deletion api/scripts/database/create-database.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import dotenv from 'dotenv';
dotenv.config();
import { logger } from '../../lib/infrastructure/logger.js';
import { logger } from '../../src/shared/infrastructure/utils/logger.js';
import { PgClient } from '../PgClient.js';
import { PGSQL_DUPLICATE_DATABASE_ERROR } from '../../db/pgsql-errors.js';

Expand Down
2 changes: 1 addition & 1 deletion api/scripts/database/drop-database.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import dotenv from 'dotenv';
dotenv.config();
import { logger } from '../../lib/infrastructure/logger.js';
import { logger } from '../../src/shared/infrastructure/utils/logger.js';
import { PgClient } from '../PgClient.js';
import { PGSQL_NON_EXISTENT_DATABASE_ERROR } from '../../db/pgsql-errors.js';

Expand Down
2 changes: 1 addition & 1 deletion api/scripts/database/empty-database.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { emptyAllTables, disconnect } from '../../db/knex-database-connection.js';
import { logger } from '../../lib/infrastructure/logger.js';
import { logger } from '../../src/shared/infrastructure/utils/logger.js';

const main = async () => {
logger.info('Emptying all tables...');
Expand Down
2 changes: 1 addition & 1 deletion api/scripts/database/pg-boss-migration.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import dotenv from 'dotenv';
dotenv.config();
import PgBoss from 'pg-boss';
import { logger } from '../../lib/infrastructure/logger.js';
import { logger } from '../../src/shared/infrastructure/utils/logger.js';
import { disconnect } from '../../db/knex-database-connection.js';

async function main() {
Expand Down
2 changes: 1 addition & 1 deletion api/scripts/database/restore-dump/download-backup.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dotenv.config({ path: '../../../.env' });
import fs from 'fs';
import Joi from 'joi';
import { ScalingoClient } from './helpers/scalingo/scalingo-client.js';
import { logger } from '../../../lib/infrastructure/logger.js';
import { logger } from '../../../src/shared/infrastructure/utils/logger.js';
import { disconnect } from '../../../db/knex-database-connection.js';

const postgresDatabaseAddonProviderId = 'postgresql';
Expand Down
2 changes: 1 addition & 1 deletion api/scripts/fill-in-assessment-method.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import dotenv from 'dotenv';
dotenv.config();

import { knex } from '../db/knex-database-connection.js';
import { logger } from '../lib/infrastructure/logger.js';
import { logger } from '../src/shared/infrastructure/utils/logger.js';

async function fillInAssessmentMethod() {
const chunkSize = 50000;
Expand Down
Loading

0 comments on commit b6f6d37

Please sign in to comment.