From 4531a1f87b12d80924a9aac908f5cb8b43ad00ab Mon Sep 17 00:00:00 2001 From: faris Aljohari <83524184+farisaljohari@users.noreply.github.com> Date: Sun, 2 Jun 2024 19:30:59 +0300 Subject: [PATCH] Remove duplicate code and unnecessary dependency in user entity and package-lock.json respectively --- .../src/modules/user/entities/user.entity.ts | 6 ------ package-lock.json | 17 ----------------- 2 files changed, 23 deletions(-) diff --git a/libs/common/src/modules/user/entities/user.entity.ts b/libs/common/src/modules/user/entities/user.entity.ts index 581955f..c432751 100644 --- a/libs/common/src/modules/user/entities/user.entity.ts +++ b/libs/common/src/modules/user/entities/user.entity.ts @@ -59,12 +59,6 @@ export class UserEntity extends AbstractEntity { @OneToMany(() => DeviceEntity, (userDevice) => userDevice.user) userDevice: DeviceEntity[]; - @OneToMany(() => DeviceEntity, (userDevice) => userDevice.user) - userDevice: DeviceEntity[]; - - @OneToMany(() => DeviceEntity, (userDevice) => userDevice.user) - userDevice: DeviceEntity[]; - @OneToMany( () => UserNotificationEntity, (userNotification) => userNotification.user, diff --git a/package-lock.json b/package-lock.json index 22aab51..7267182 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7364,23 +7364,6 @@ "thenify-all": "^1.0.0" } }, - "node_modules/nanoid": { - "version": "5.0.7", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-5.0.7.tgz", - "integrity": "sha512-oLxFY2gd2IqnjcYyOXD8XGCftpGtZP2AbHbOkthDkvRywH5ayNtPVy9YlOPcHckXzbLTCHpkb7FB+yuxKV13pQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "bin": { - "nanoid": "bin/nanoid.js" - }, - "engines": { - "node": "^18 || >=20" - } - }, "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",