fixing issue optimasi

This commit is contained in:
gigihshs
2025-12-11 12:27:20 +07:00
parent 2f5f40bd88
commit 07bf03d40d
4 changed files with 60 additions and 28 deletions
-3
View File
@@ -4,7 +4,6 @@ import (
"net/http"
"satusehat-rssa/internal/integration"
"satusehat-rssa/internal/model"
"satusehat-rssa/pkg/common"
"github.com/gin-gonic/gin"
)
@@ -22,7 +21,6 @@ func (s *SpecimenHandler) CreateSpecimen(c *gin.Context) {
c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
return
}
req.Identifier = append(req.Identifier, common.GetIdentifier("specimen"))
res, err := s.Specimen.CreateSpecimen(req)
if err != nil {
if res != nil {
@@ -63,7 +61,6 @@ func (s *SpecimenHandler) UpdateSpecimen(c *gin.Context) {
return
}
req.Id = c.Param("id")
req.Identifier = append(req.Identifier, common.GetIdentifier("specimen"))
res, err := s.Specimen.UpdateSpecimen(req)
if err != nil {
if res != nil {