refactor: fix code smells

This commit is contained in:
Elias Schneider
2025-03-27 16:48:36 +01:00
parent 6fa26c97be
commit c9e0073b63
19 changed files with 191 additions and 200 deletions

View File

@@ -18,9 +18,9 @@ type AuditLog struct {
Data AuditLogData
}
type AuditLogData map[string]string
type AuditLogData map[string]string //nolint:recvcheck
type AuditLogEvent string
type AuditLogEvent string //nolint:recvcheck
const (
AuditLogEventSignIn AuditLogEvent = "SIGN_IN"
@@ -48,6 +48,6 @@ func (d *AuditLogData) Scan(value interface{}) error {
}
}
func (d AuditLogData) Value() (driver.Value, error) {
func (d *AuditLogData) Value() (driver.Value, error) {
return json.Marshal(d)
}