From 71865e389ee95fcd7da20ee63fccf00b8731221a Mon Sep 17 00:00:00 2001 From: Abhinav Raut Date: Mon, 15 Sep 2025 01:01:51 +0530 Subject: [PATCH] fix: Change id type to int in ConversationParticipant - hide Total field in UserCompact JSON --- internal/conversation/models/models.go | 2 +- internal/user/models/models.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/conversation/models/models.go b/internal/conversation/models/models.go index d5a19e7..b3e8071 100644 --- a/internal/conversation/models/models.go +++ b/internal/conversation/models/models.go @@ -173,7 +173,7 @@ type PreviousConversationContact struct { } type ConversationParticipant struct { - ID string `db:"id" json:"id"` + ID int `db:"id" json:"id"` FirstName string `db:"first_name" json:"first_name"` LastName string `db:"last_name" json:"last_name"` AvatarURL null.String `db:"avatar_url" json:"avatar_url"` diff --git a/internal/user/models/models.go b/internal/user/models/models.go index 610285a..ffd4470 100644 --- a/internal/user/models/models.go +++ b/internal/user/models/models.go @@ -41,7 +41,7 @@ type UserCompact struct { CreatedAt time.Time `db:"created_at" json:"created_at"` UpdatedAt time.Time `db:"updated_at" json:"updated_at"` - Total int `db:"total" json:"total"` + Total int `db:"total" json:"-"` } type User struct {