Use CPONE user name for HIS LoginBuat
This commit is contained in:
@@ -128,8 +128,12 @@ func validateAddLabServices(payload map[string]any) (repository.AddLabServicesPa
|
||||
channel = "CPONE"
|
||||
}
|
||||
channel = strings.ToUpper(strings.TrimSpace(channel))
|
||||
loginBuat, message := requiredLoginBuat(payload)
|
||||
if message != "" {
|
||||
return repository.AddLabServicesParams{}, message
|
||||
}
|
||||
|
||||
return repository.AddLabServicesParams{Layanan: services, Channel: channel}, ""
|
||||
return repository.AddLabServicesParams{Layanan: services, Channel: channel, LoginBuat: loginBuat}, ""
|
||||
}
|
||||
|
||||
func requiredNestedString(item map[string]any, key string, index int, maxLength int, requiredMessage string) (string, string) {
|
||||
|
||||
Reference in New Issue
Block a user