|
| 1 | +/* eslint-disable no-console */ |
| 2 | + |
1 | 3 | import * as url from 'node:url';
|
2 | 4 |
|
3 |
| -import { disconnect } from '../db/knex-database-connection.js'; |
4 |
| -import * as authenticationMethodRepository from '../src/identity-access-management/infrastructure/repositories/authentication-method.repository.js'; |
5 |
| -import { userToCreateRepository } from '../src/identity-access-management/infrastructure/repositories/user-to-create.repository.js'; |
6 |
| -import { DomainTransaction } from '../src/shared/domain/DomainTransaction.js'; |
7 |
| -import { cryptoService } from '../src/shared/domain/services/crypto-service.js'; |
8 |
| -import * as userService from '../src/shared/domain/services/user-service.js'; |
9 |
| -import { parseCsvWithHeader } from './helpers/csvHelpers.js'; |
| 5 | +import { disconnect } from '../../../db/knex-database-connection.js'; |
| 6 | +import { parseCsvWithHeader } from '../../../scripts/helpers/csvHelpers.js'; |
| 7 | +import { DomainTransaction } from '../../shared/domain/DomainTransaction.js'; |
| 8 | +import { cryptoService } from '../../shared/domain/services/crypto-service.js'; |
| 9 | +import * as userService from '../../shared/domain/services/user-service.js'; |
| 10 | +import * as authenticationMethodRepository from '../infrastructure/repositories/authentication-method.repository.js'; |
| 11 | +import { userToCreateRepository } from '../infrastructure/repositories/user-to-create.repository.js'; |
10 | 12 |
|
11 | 13 | function prepareDataForInsert(rawUsers) {
|
12 | 14 | return rawUsers.map(({ firstName, lastName, email, password }) => {
|
@@ -79,4 +81,6 @@ async function main() {
|
79 | 81 | }
|
80 | 82 | })();
|
81 | 83 |
|
| 84 | +/* eslint-enable no-console */ |
| 85 | + |
82 | 86 | export { createUsers, prepareDataForInsert };
|
0 commit comments