mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-12 23:35:50 +00:00
correct Decimal import, corrected path
This commit is contained in:
parent
9e45b99f98
commit
0c46377292
@ -1,5 +1,5 @@
|
|||||||
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column, OneToMany } from 'typeorm'
|
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column, OneToMany } from 'typeorm'
|
||||||
import { UserSetting } from '../0002-add_settings/UserSetting'
|
import { UserSetting } from './UserSetting'
|
||||||
|
|
||||||
// Moriz: I do not like the idea of having two user tables
|
// Moriz: I do not like the idea of having two user tables
|
||||||
@Entity('state_users', { engine: 'InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci' })
|
@Entity('state_users', { engine: 'InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci' })
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import Decimal from 'decimal.js-light'
|
import { Decimal } from 'decimal.js-light'
|
||||||
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column } from 'typeorm'
|
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column } from 'typeorm'
|
||||||
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
|
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import Decimal from 'decimal.js-light'
|
import { Decimal } from 'decimal.js-light'
|
||||||
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column } from 'typeorm'
|
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column } from 'typeorm'
|
||||||
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
|
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import Decimal from 'decimal.js-light'
|
import { Decimal } from 'decimal.js-light'
|
||||||
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column, DeleteDateColumn } from 'typeorm'
|
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column, DeleteDateColumn } from 'typeorm'
|
||||||
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
|
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import Decimal from 'decimal.js-light'
|
import { Decimal } from 'decimal.js-light'
|
||||||
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column, DeleteDateColumn } from 'typeorm'
|
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column, DeleteDateColumn } from 'typeorm'
|
||||||
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
|
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import Decimal from 'decimal.js-light'
|
import { Decimal } from 'decimal.js-light'
|
||||||
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column } from 'typeorm'
|
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column } from 'typeorm'
|
||||||
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
|
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import Decimal from 'decimal.js-light'
|
import { Decimal } from 'decimal.js-light'
|
||||||
import { BaseEntity, Column, Entity, PrimaryGeneratedColumn } from 'typeorm'
|
import { BaseEntity, Column, Entity, PrimaryGeneratedColumn } from 'typeorm'
|
||||||
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
|
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/* eslint-disable no-use-before-define */
|
/* eslint-disable no-use-before-define */
|
||||||
import Decimal from 'decimal.js-light'
|
import { Decimal } from 'decimal.js-light'
|
||||||
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column, OneToOne, JoinColumn } from 'typeorm'
|
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column, OneToOne, JoinColumn } from 'typeorm'
|
||||||
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
|
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
|
||||||
import { Contribution } from '../Contribution'
|
import { Contribution } from '../Contribution'
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import Decimal from 'decimal.js-light'
|
import { Decimal } from 'decimal.js-light'
|
||||||
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column, DeleteDateColumn } from 'typeorm'
|
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column, DeleteDateColumn } from 'typeorm'
|
||||||
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
|
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import Decimal from 'decimal.js-light'
|
import { Decimal } from 'decimal.js-light'
|
||||||
import {
|
import {
|
||||||
BaseEntity,
|
BaseEntity,
|
||||||
Column,
|
Column,
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import Decimal from 'decimal.js-light'
|
import { Decimal } from 'decimal.js-light'
|
||||||
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column } from 'typeorm'
|
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column } from 'typeorm'
|
||||||
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
|
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import Decimal from 'decimal.js-light'
|
import { Decimal } from 'decimal.js-light'
|
||||||
import {
|
import {
|
||||||
BaseEntity,
|
BaseEntity,
|
||||||
Column,
|
Column,
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import Decimal from 'decimal.js-light'
|
import { Decimal } from 'decimal.js-light'
|
||||||
import {
|
import {
|
||||||
BaseEntity,
|
BaseEntity,
|
||||||
Column,
|
Column,
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import Decimal from 'decimal.js-light'
|
import { Decimal } from 'decimal.js-light'
|
||||||
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column } from 'typeorm'
|
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column } from 'typeorm'
|
||||||
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
|
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import Decimal from 'decimal.js-light'
|
import { Decimal } from 'decimal.js-light'
|
||||||
import {
|
import {
|
||||||
BaseEntity,
|
BaseEntity,
|
||||||
Column,
|
Column,
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import Decimal from 'decimal.js-light'
|
import { Decimal } from 'decimal.js-light'
|
||||||
import {
|
import {
|
||||||
BaseEntity,
|
BaseEntity,
|
||||||
Column,
|
Column,
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import { Contribution } from '../Contribution'
|
|||||||
import { ContributionMessage } from '../ContributionMessage'
|
import { ContributionMessage } from '../ContributionMessage'
|
||||||
import { User } from '../User'
|
import { User } from '../User'
|
||||||
import { Transaction } from '../Transaction'
|
import { Transaction } from '../Transaction'
|
||||||
import Decimal from 'decimal.js-light'
|
import { Decimal } from 'decimal.js-light'
|
||||||
import {
|
import {
|
||||||
BaseEntity,
|
BaseEntity,
|
||||||
Entity,
|
Entity,
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import { Contribution } from '../Contribution'
|
|||||||
import { ContributionMessage } from '../ContributionMessage'
|
import { ContributionMessage } from '../ContributionMessage'
|
||||||
import { User } from '../User'
|
import { User } from '../User'
|
||||||
import { Transaction } from '../Transaction'
|
import { Transaction } from '../Transaction'
|
||||||
import Decimal from 'decimal.js-light'
|
import { Decimal } from 'decimal.js-light'
|
||||||
import {
|
import {
|
||||||
BaseEntity,
|
BaseEntity,
|
||||||
Entity,
|
Entity,
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/* eslint-disable no-use-before-define */
|
/* eslint-disable no-use-before-define */
|
||||||
import Decimal from 'decimal.js-light'
|
import { Decimal } from 'decimal.js-light'
|
||||||
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column, OneToOne, JoinColumn } from 'typeorm'
|
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column, OneToOne, JoinColumn } from 'typeorm'
|
||||||
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
|
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
|
||||||
import { Contribution } from '../Contribution'
|
import { Contribution } from '../Contribution'
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||||
/* eslint-disable no-unused-vars */
|
/* eslint-disable no-unused-vars */
|
||||||
|
|
||||||
import Decimal from 'decimal.js-light'
|
import { Decimal } from 'decimal.js-light'
|
||||||
|
|
||||||
// Set precision value
|
// Set precision value
|
||||||
Decimal.set({
|
Decimal.set({
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
/* eslint-disable no-unused-vars */
|
/* eslint-disable no-unused-vars */
|
||||||
|
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
import Decimal from 'decimal.js-light'
|
import { Decimal } from 'decimal.js-light'
|
||||||
|
|
||||||
// Set precision value
|
// Set precision value
|
||||||
Decimal.set({
|
Decimal.set({
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import Decimal from 'decimal.js-light'
|
import { Decimal } from 'decimal.js-light'
|
||||||
import { ValueTransformer } from 'typeorm'
|
import { ValueTransformer } from 'typeorm'
|
||||||
|
|
||||||
Decimal.set({
|
Decimal.set({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user