add comments to explain local imports

This commit is contained in:
einhorn_b 2023-12-19 16:30:04 +01:00
parent 0567a3ddf0
commit ca6d688344
4 changed files with 8 additions and 0 deletions

View File

@ -8,7 +8,9 @@ import {
BaseEntity,
} from 'typeorm'
import { User } from '../User'
// TransactionRecipe was removed in newer migrations, so only the version from this folder can be linked
import { TransactionRecipe } from './TransactionRecipe'
// ConfirmedTransaction was removed in newer migrations, so only the version from this folder can be linked
import { ConfirmedTransaction } from './ConfirmedTransaction'
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
import { Decimal } from 'decimal.js-light'

View File

@ -8,6 +8,7 @@ import {
BaseEntity,
} from 'typeorm'
import { Account } from '../Account'
// TransactionRecipe was removed in newer migrations, so only the version from this folder can be linked
import { TransactionRecipe } from './TransactionRecipe'
import { AccountCommunity } from '../AccountCommunity'

View File

@ -10,7 +10,9 @@ import {
import { Decimal } from 'decimal.js-light'
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
// the relation in future account don't match which this any longer, so we can only link with the local account here
import { Account } from './Account'
// TransactionRecipe was removed in newer migrations, so only the version from this folder can be linked
import { TransactionRecipe } from './TransactionRecipe'
@Entity('confirmed_transactions')

View File

@ -10,8 +10,11 @@ import {
import { Decimal } from 'decimal.js-light'
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
// the relation in future account don't match which this any longer, so we can only link with the local account here
import { Account } from './Account'
// the relation in future community don't match which this any longer, so we can only link with the local account here
import { Community } from './Community'
// ConfirmedTransaction was removed in newer migrations, so only the version from this folder can be linked
import { ConfirmedTransaction } from './ConfirmedTransaction'
@Entity('transaction_recipes')