XMLWAN 4 vuotta sitten
vanhempi
commit
88b3a6094b
1 muutettua tiedostoa jossa 5 lisäystä ja 5 poistoa
  1. 5 5
      controllers/patient_api_controller.go

+ 5 - 5
controllers/patient_api_controller.go Näytä tiedosto

@@ -684,11 +684,11 @@ func (c *PatientApiController) EditLapseto() {
684 684
 
685 685
 	out_reason, _ := patientBody["out_reason"].(string)
686 686
 
687
-	if len(out_reason) == 0 {
688
-		utils.ErrorLog("len(out_reason) == 0")
689
-		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeNotSelectLapsetoTime)
690
-		return
691
-	}
687
+	//if len(out_reason) == 0 {
688
+	//	utils.ErrorLog("len(out_reason) == 0")
689
+	//	c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeNotSelectLapsetoTime)
690
+	//	return
691
+	//}
692 692
 
693 693
 	lapsetoTimeUnix, err := time.ParseInLocation(timeLayout, lapsetoTime, loc)
694 694
 	if err != nil {