diff --git a/src/lib/services/user-service.ts b/src/lib/services/user-service.ts index 1dc167d4b420..323439626e25 100644 --- a/src/lib/services/user-service.ts +++ b/src/lib/services/user-service.ts @@ -244,12 +244,7 @@ class UserService { return userCreated; } - private getCreatedBy( - updatedBy: IUser = new User({ - id: SYSTEM_USER.id, - username: SYSTEM_USER.username, - }), - ): string { + private getCreatedBy(updatedBy: IUser = new User(SYSTEM_USER)): string { return updatedBy.username || updatedBy.email; }