Skip to content

Commit

Permalink
chore: user-service.getCreatedBy system_user as constructor param
Browse files Browse the repository at this point in the history
  • Loading branch information
daveleek committed Jan 23, 2024
1 parent 283e5bb commit b6a79ec
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/lib/services/user-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b6a79ec

Please sign in to comment.