From a50669b5cd49f2f39d440b94a731d4517d828f6e Mon Sep 17 00:00:00 2001 From: Ashish Newar <122523482+AshNewar@users.noreply.github.com> Date: Sat, 10 Feb 2024 22:53:58 +0530 Subject: [PATCH] Update db.hr.go --- company/db.hr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/company/db.hr.go b/company/db.hr.go index d098ef2..bdb7739 100644 --- a/company/db.hr.go +++ b/company/db.hr.go @@ -3,7 +3,7 @@ package company import "github.com/gin-gonic/gin" func getAllHRUserDB(ctx *gin.Context, HRs *[]CompanyHR) error { - tx := db.WithContext(ctx).Select("ID", "CreatedAt", "UpdatedAt", "DeletedAt", "Name", "Email", "Phone").Find(HRs) + tx := db.WithContext(ctx).Select("ID","CreatedAt","UpdatedAt","DeletedAt","Name","Email","Phone").Find(HRs) return tx.Error }