fix: time displayed incorrectly in audit log

This commit is contained in:
Elias Schneider
2024-11-11 18:00:15 +01:00
parent 725388fcc7
commit 3d3fb4d855
3 changed files with 20 additions and 18 deletions

View File

@@ -2,12 +2,12 @@ package dto
import (
"github.com/stonith404/pocket-id/backend/internal/model"
"time"
datatype "github.com/stonith404/pocket-id/backend/internal/model/types"
)
type AuditLogDto struct {
ID string `json:"id"`
CreatedAt time.Time `json:"createdAt"`
ID string `json:"id"`
CreatedAt datatype.DateTime `json:"createdAt"`
Event model.AuditLogEvent `json:"event"`
IpAddress string `json:"ipAddress"`