Skip to content

Commit cf4cfc5

Browse files
committed
make gen 2
1 parent 1c9a68f commit cf4cfc5

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

coderd/database/querier.go

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/gitsshkey.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ func (api *api) regenerateGitSSHKey(rw http.ResponseWriter, r *http.Request) {
2828
err = api.Database.UpdateGitSSHKey(r.Context(), database.UpdateGitSSHKeyParams{
2929
UserID: user.ID,
3030
UpdatedAt: database.Now(),
31-
PrivateKey: privateKey,
32-
PublicKey: publicKey,
31+
PrivateKey: string(privateKey),
32+
PublicKey: string(publicKey),
3333
})
3434
if err != nil {
3535
httpapi.Write(rw, http.StatusInternalServerError, httpapi.Response{

codersdk/gitsshkey.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ type GitSSHKey struct {
66
UserID string `json:"user_id"`
77
CreatedAt time.Time `json:"created_at"`
88
UpdatedAt time.Time `json:"updated_at"`
9-
PublicKey []byte `json:"public_key"`
9+
PublicKey string `json:"public_key"`
1010
}

0 commit comments

Comments
 (0)