From a013f848149b3c55a727e54181ee2aa246305df6 Mon Sep 17 00:00:00 2001
From: clauspeterhuebner
Date: Wed, 17 Dec 2025 16:50:42 +0100
Subject: [PATCH] linting database
---
.../src/logging/UserContactLogging.view.ts | 37 ++++++++++---------
1 file changed, 19 insertions(+), 18 deletions(-)
diff --git a/database/src/logging/UserContactLogging.view.ts b/database/src/logging/UserContactLogging.view.ts
index 426866b03..c064a8b2d 100644
--- a/database/src/logging/UserContactLogging.view.ts
+++ b/database/src/logging/UserContactLogging.view.ts
@@ -17,24 +17,25 @@ export class UserContactLoggingView extends AbstractLoggingView {
public toJSON(): any {
return {
- self: this.self ?
- {
- id: this.self.id,
- type: this.self.type,
- user:
- this.showUser && this.self.user
- ? new UserLoggingView(this.self.user).toJSON()
- : { id: this.self.userId },
- email: this.self.email?.substring(0, 3) + '...',
- emailVerificationCode: this.self.emailVerificationCode?.substring(0, 4) + '...',
- emailOptInTypeId: OptInType[this.self.emailOptInTypeId],
- emailResendCount: this.self.emailResendCount,
- emailChecked: this.self.emailChecked,
- phone: this.self.phone ? this.self.phone.substring(0, 3) + '...' : undefined,
- createdAt: this.dateToString(this.self.createdAt),
- updatedAt: this.dateToString(this.self.updatedAt),
- deletedAt: this.dateToString(this.self.deletedAt),
- } : undefined
+ self: this.self
+ ? {
+ id: this.self.id,
+ type: this.self.type,
+ user:
+ this.showUser && this.self.user
+ ? new UserLoggingView(this.self.user).toJSON()
+ : { id: this.self.userId },
+ email: this.self.email?.substring(0, 3) + '...',
+ emailVerificationCode: this.self.emailVerificationCode?.substring(0, 4) + '...',
+ emailOptInTypeId: OptInType[this.self.emailOptInTypeId],
+ emailResendCount: this.self.emailResendCount,
+ emailChecked: this.self.emailChecked,
+ phone: this.self.phone ? this.self.phone.substring(0, 3) + '...' : undefined,
+ createdAt: this.dateToString(this.self.createdAt),
+ updatedAt: this.dateToString(this.self.updatedAt),
+ deletedAt: this.dateToString(this.self.deletedAt),
+ }
+ : undefined,
}
}
}