-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(model): change configuration from struct to string (#72)
Because - We can safely use string to replace `google.protobuf.Struct` for now, as `google.protobuf.FieldMask` just doesn’t work with `google.protobuf.Struct` at all. Another thing is that we store a JSON struct type in the database as `JSONB` and its GORM mapping is `datatypes.JSON` which is nothing but `[]byte` (i.e., a string). This commit - update configuration in model and model_instance from ` google.protobuf.Struct` to string
- Loading branch information
1 parent
2f7dfab
commit 77b02ea
Showing
3 changed files
with
144 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.