You've already forked agentic-coding-workflow
bugfix
This commit is contained in:
@@ -12,7 +12,7 @@ import (
|
||||
)
|
||||
|
||||
const getCredentialByWorkspace = `-- name: GetCredentialByWorkspace :one
|
||||
SELECT id, workspace_id, kind, username, encrypted_secret, fingerprint, created_at, updated_at FROM git_credentials WHERE workspace_id = $1
|
||||
SELECT id, workspace_id, kind, username, encrypted_secret, fingerprint, created_at, updated_at, key_version FROM git_credentials WHERE workspace_id = $1
|
||||
`
|
||||
|
||||
func (q *Queries) GetCredentialByWorkspace(ctx context.Context, workspaceID pgtype.UUID) (GitCredential, error) {
|
||||
@@ -27,6 +27,7 @@ func (q *Queries) GetCredentialByWorkspace(ctx context.Context, workspaceID pgty
|
||||
&i.Fingerprint,
|
||||
&i.CreatedAt,
|
||||
&i.UpdatedAt,
|
||||
&i.KeyVersion,
|
||||
)
|
||||
return i, err
|
||||
}
|
||||
@@ -40,7 +41,7 @@ ON CONFLICT (workspace_id) DO UPDATE
|
||||
encrypted_secret = EXCLUDED.encrypted_secret,
|
||||
fingerprint = EXCLUDED.fingerprint,
|
||||
updated_at = now()
|
||||
RETURNING id, workspace_id, kind, username, encrypted_secret, fingerprint, created_at, updated_at
|
||||
RETURNING id, workspace_id, kind, username, encrypted_secret, fingerprint, created_at, updated_at, key_version
|
||||
`
|
||||
|
||||
type UpsertCredentialParams struct {
|
||||
@@ -71,6 +72,7 @@ func (q *Queries) UpsertCredential(ctx context.Context, arg UpsertCredentialPara
|
||||
&i.Fingerprint,
|
||||
&i.CreatedAt,
|
||||
&i.UpdatedAt,
|
||||
&i.KeyVersion,
|
||||
)
|
||||
return i, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user