check for 4 digits input
This commit is contained in:
parent
357485feed
commit
cb31616a87
@ -229,7 +229,8 @@ func (h *Handlers) SaveYob(cxt context.Context, sym string, input []byte) (resou
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return res, err
|
return res, err
|
||||||
}
|
}
|
||||||
if len(input) > 0 {
|
yob := string(input)
|
||||||
|
if len(yob) > 4 {
|
||||||
yob := string(input)
|
yob := string(input)
|
||||||
accountData["YOB"] = yob
|
accountData["YOB"] = yob
|
||||||
updatedJsonData, err := json.Marshal(accountData)
|
updatedJsonData, err := json.Marshal(accountData)
|
||||||
|
Loading…
Reference in New Issue
Block a user