chore: cleanup

This commit is contained in:
adamdottv
2025-05-13 06:51:28 -05:00
parent 0117c72a2c
commit 0c21ca5318
5 changed files with 79 additions and 27 deletions

View File

@@ -95,11 +95,11 @@ func (s *service) Create(ctx context.Context, log Log) error {
err := s.db.CreateLog(ctx, db.CreateLogParams{
ID: log.ID,
SessionID: sql.NullString{String: log.SessionID, Valid: log.SessionID != ""},
Timestamp: log.Timestamp / 1000,
Timestamp: log.Timestamp,
Level: log.Level,
Message: log.Message,
Attributes: attributesJSON,
CreatedAt: log.CreatedAt / 1000,
CreatedAt: log.CreatedAt,
})
if err != nil {
return fmt.Errorf("db.CreateLog: %w", err)