add comment

This commit is contained in:
vanilia
2025-10-27 17:28:50 +07:00
parent 159db551eb
commit 15179c746c
2 changed files with 8 additions and 8 deletions
@@ -2,7 +2,6 @@ package encounter
import (
"net/http"
"time"
rw "github.com/karincake/risoles"
sf "github.com/karincake/semprit"
@@ -125,13 +124,6 @@ func (obj myBase) CheckIn(w http.ResponseWriter, r *http.Request) {
}
dto.Id = uint(id)
// validate startedAt
if dto.StartedAt == nil {
now := time.Now()
dto.StartedAt = &now
}
res, err := u.CheckIn(dto)
rw.DataResponse(w, res, err)
}