fix: seed migration issue

This commit is contained in:
Ahmed Bouhuolia
2025-10-25 13:58:56 +02:00
parent fb6bfdee8e
commit 1971b2ddc0
138 changed files with 540 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
import { Inject, Injectable } from '@nestjs/common';
import { uniq } from 'lodash';
import Currencies from 'js-money/lib/currency';
import * as Currencies from 'js-money/lib/currency';
import { InitialCurrencies } from '../Currencies.constants';
import { TenantModelProxy } from '../../System/models/TenantBaseModel';
import { Currency } from '../models/Currency.model';
@@ -10,7 +10,7 @@ export class InitialCurrenciesSeedService {
constructor(
@Inject(Currency.name)
private readonly currencyModel: TenantModelProxy<typeof Currency>,
) {}
) { }
/**
* Seeds the given base currency to the currencies list.