diff options
| author | leshe4ka46 <alex9102naid1@ya.ru> | 2025-10-28 13:42:55 +0300 |
|---|---|---|
| committer | leshe4ka46 <alex9102naid1@ya.ru> | 2025-10-28 13:43:08 +0300 |
| commit | ded279a489631651943b5b65cdb3acb6764cf288 (patch) | |
| tree | 9ea2c846f5efdab6521b4e7236dcbea34c9b544b /pkg/model/types.go | |
| parent | bb833561aa74f02970aee13cdc75973b29716491 (diff) | |
unmarshal all formats, merge them in the single table, users are truly unique
Diffstat (limited to 'pkg/model/types.go')
| -rw-r--r-- | pkg/model/types.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/model/types.go b/pkg/model/types.go index fd65d46..8b1106d 100644 --- a/pkg/model/types.go +++ b/pkg/model/types.go @@ -33,7 +33,7 @@ func (s *Sex) UnmarshalJSON(b []byte) error { return nil } } - // also accept numbers in JSON + var n int if err := json.Unmarshal(b, &n); err == nil { *s = Sex(n) |
