From f7543a1054c034bad93d96cfbc4dadf99ae78c57 Mon Sep 17 00:00:00 2001 From: agodnic Date: Tue, 27 Jun 2023 10:12:55 -0300 Subject: [PATCH] Remove field `vaa.NativeTxHash` from JSON model (#462) ### Description Remove the `NativeTxHash` from the JSON model returned by `GET /api/v1/vaas`. That field was never meant to be exposed to the API users. --- api/handlers/vaa/model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/handlers/vaa/model.go b/api/handlers/vaa/model.go index 4bce601e..5356e31c 100644 --- a/api/handlers/vaa/model.go +++ b/api/handlers/vaa/model.go @@ -35,7 +35,7 @@ type VaaDoc struct { // NativeTxHash is an internal field. // // It is not intended to be accessed by consumers of this package. - NativeTxHash string `bson:"nativeTxHash"` + NativeTxHash string `bson:"nativeTxHash" json:"-"` } // MarshalJSON interface implementation.