690328:1106 Fixing Refactor uuid by Kimi #01
This commit is contained in:
Vendored
+2
-1
@@ -1,3 +1,4 @@
|
||||
{
|
||||
"npm.packageManager": "pnpm"
|
||||
"npm.packageManager": "pnpm",
|
||||
"editor.fontSize": 16
|
||||
}
|
||||
|
||||
+4
-14
@@ -76,7 +76,7 @@
|
||||
"socket.io": "^4.8.1",
|
||||
"swagger-ui-express": "^5.0.1",
|
||||
"typeorm": "^0.3.27",
|
||||
"uuid": "^11.0.0",
|
||||
"uuid": "^9.0.0",
|
||||
"winston": "^3.18.3",
|
||||
"zod": "^4.1.13"
|
||||
},
|
||||
@@ -115,24 +115,14 @@
|
||||
"typescript-eslint": "^8.57.1"
|
||||
},
|
||||
"jest": {
|
||||
"moduleFileExtensions": [
|
||||
"js",
|
||||
"json",
|
||||
"ts"
|
||||
],
|
||||
"preset": "ts-jest",
|
||||
"testEnvironment": "node",
|
||||
"rootDir": "src",
|
||||
"testRegex": ".*\\.spec\\.ts$",
|
||||
"transform": {
|
||||
"^.+\\.(t|j)s$": "ts-jest"
|
||||
},
|
||||
"collectCoverageFrom": [
|
||||
"**/*.(t|j)s"
|
||||
],
|
||||
"coverageDirectory": "../coverage",
|
||||
"testEnvironment": "node",
|
||||
"transformIgnorePatterns": [
|
||||
"node_modules/(?!(uuid)/)"
|
||||
]
|
||||
"coverageDirectory": "../coverage"
|
||||
},
|
||||
"main": "index.js",
|
||||
"directories": {
|
||||
|
||||
@@ -17,7 +17,7 @@ import { Organization } from '../../organization/entities/organization.entity';
|
||||
import { UserAssignment } from './user-assignment.entity';
|
||||
import { UserPreference } from './user-preference.entity';
|
||||
import { UuidBaseEntity } from '../../../common/entities/uuid-base.entity';
|
||||
import { Exclude, Expose } from 'class-transformer';
|
||||
import { Exclude } from 'class-transformer';
|
||||
|
||||
@Entity('users')
|
||||
export class User extends UuidBaseEntity {
|
||||
@@ -65,7 +65,6 @@ export class User extends UuidBaseEntity {
|
||||
organization?: Organization;
|
||||
|
||||
// ADR-019: Expose UUID instead of INT ID
|
||||
@Expose({ name: 'primaryOrganizationId' })
|
||||
get primaryOrganizationPublicId(): string | undefined {
|
||||
return this.organization?.publicId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user