Encrypt git token in insertstruct

This commit is contained in:
2025-03-01 21:59:04 +01:00
parent e89b4a0e14
commit 3ce92322f4
6 changed files with 21 additions and 19 deletions

View File

@@ -11,7 +11,7 @@ import (
// CreateSession inserts a new session record into the database
func (db *database) CreateSession(session *models.Session) error {
query, err := NewQuery(db.dbType).
InsertStruct(session, "sessions")
InsertStruct(session, "sessions", db.secretsService)
if err != nil {
return fmt.Errorf("failed to create query: %w", err)
}