summaryrefslogtreecommitdiff
path: root/cmd/tfstate
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cmd/tfstated/post.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/tfstated/post.go b/cmd/tfstated/post.go
index 718fed7..674eaba 100644
--- a/cmd/tfstated/post.go
+++ b/cmd/tfstated/post.go
@@ -25,7 +25,7 @@ func handlePost(db *database.DB) http.Handler {
_ = errorResponse(w, http.StatusBadRequest, err)
return
}
- account := r.Context().Value("account").(*model.Account)
+ account := r.Context().Value(model.AccountContextKey{}).(*model.Account)
if idMismatch, err := db.SetState(r.URL.Path, account.Id, data, id); err != nil {
if idMismatch {
_ = errorResponse(w, http.StatusConflict, err)