From b6a79ec38633dddda0517273651589251bdf2569 Mon Sep 17 00:00:00 2001 From: David Leek Date: Tue, 23 Jan 2024 14:55:15 +0100 Subject: [PATCH] chore: user-service.getCreatedBy system_user as constructor param --- src/lib/services/user-service.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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; }