fixing issue optimasi
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user