Browse Source
Merge branch 'main' into feat/import
pull/2581/head
Thomas Kaul
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
3 additions and
11 deletions
-
CHANGELOG.md
-
apps/api/src/app/account/create-account.dto.ts
-
apps/api/src/app/account/update-account.dto.ts
-
prisma/migrations/20231107080536_removed_account_type_from_account/migration.sql
-
prisma/schema.prisma
|
|
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
### Changed |
|
|
|
|
|
|
|
- Improved the import of historical market data in the admin control panel |
|
|
|
- Removed the account type from the `Account` database schema |
|
|
|
|
|
|
|
## 2.19.0 - 2023-11-06 |
|
|
|
|
|
|
|
|
|
@ -1,4 +1,3 @@ |
|
|
|
import { AccountType } from '@prisma/client'; |
|
|
|
import { Transform, TransformFnParams } from 'class-transformer'; |
|
|
|
import { |
|
|
|
IsBoolean, |
|
|
@ -10,10 +9,6 @@ import { |
|
|
|
import { isString } from 'lodash'; |
|
|
|
|
|
|
|
export class CreateAccountDto { |
|
|
|
@IsOptional() |
|
|
|
@IsString() |
|
|
|
accountType?: AccountType; |
|
|
|
|
|
|
|
@IsNumber() |
|
|
|
balance: number; |
|
|
|
|
|
|
|
|
|
@ -1,4 +1,3 @@ |
|
|
|
import { AccountType } from '@prisma/client'; |
|
|
|
import { Transform, TransformFnParams } from 'class-transformer'; |
|
|
|
import { |
|
|
|
IsBoolean, |
|
|
@ -10,10 +9,6 @@ import { |
|
|
|
import { isString } from 'lodash'; |
|
|
|
|
|
|
|
export class UpdateAccountDto { |
|
|
|
@IsOptional() |
|
|
|
@IsString() |
|
|
|
accountType?: AccountType; |
|
|
|
|
|
|
|
@IsNumber() |
|
|
|
balance: number; |
|
|
|
|
|
|
|
|
|
@ -0,0 +1,2 @@ |
|
|
|
-- AlterTable |
|
|
|
ALTER TABLE "Account" DROP COLUMN "accountType"; |
|
|
@ -21,7 +21,6 @@ model Access { |
|
|
|
} |
|
|
|
|
|
|
|
model Account { |
|
|
|
accountType AccountType? |
|
|
|
balance Float @default(0) |
|
|
|
balances AccountBalance[] |
|
|
|
comment String? |
|
|
|