Skip to content

feat(coderd): add dbcrypt package #9522

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Sep 6, 2023
Prev Previous commit
Next Next commit
fix indentation
  • Loading branch information
johnstcn committed Sep 5, 2023
commit 55b93e7d60509326208bd48aa0138229be53e89e
12 changes: 6 additions & 6 deletions coderd/database/queries/gitauth.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ INSERT INTO git_auth_links (
created_at,
updated_at,
oauth_access_token,
oauth_access_token_key_id,
oauth_access_token_key_id,
oauth_refresh_token,
oauth_refresh_token_key_id,
oauth_refresh_token_key_id,
oauth_expiry
) VALUES (
$1,
Expand All @@ -23,16 +23,16 @@ INSERT INTO git_auth_links (
$5,
$6,
$7,
$8,
$9
$8,
$9
) RETURNING *;

-- name: UpdateGitAuthLink :one
UPDATE git_auth_links SET
updated_at = $3,
oauth_access_token = $4,
oauth_access_token_key_id = $5,
oauth_access_token_key_id = $5,
oauth_refresh_token = $6,
oauth_refresh_token_key_id = $7,
oauth_refresh_token_key_id = $7,
oauth_expiry = $8
WHERE provider_id = $1 AND user_id = $2 RETURNING *;