From ded279a489631651943b5b65cdb3acb6764cf288 Mon Sep 17 00:00:00 2001 From: leshe4ka46 Date: Tue, 28 Oct 2025 13:42:55 +0300 Subject: unmarshal all formats, merge them in the single table, users are truly unique --- pkg/model/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/model/types.go') 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) -- cgit v1.2.3