Bug fix in db.UpdateFeature
Change-Id: I5011a38f4c4b4d926ffa7aab8de71c246687aded
diff --git a/internal/db/features.go b/internal/db/features.go
index ea56c3d..4a263b3 100644
--- a/internal/db/features.go
+++ b/internal/db/features.go
@@ -53,6 +53,6 @@
}
func UpdateFeature(db *sql.DB, ctx context.Context, id int32, f *pb.Feature) error {
- _, err := db.ExecContext(ctx, "UPDATE Feature SET feat_type = ? WHERE id = ?", f.Type, id)
+ _, err := db.ExecContext(ctx, "UPDATE Feature SET feat_type = ? WHERE feat_id = ?", f.Type, id)
return err
}