update tests with custom record

This commit is contained in:
kiwiidb
2022-03-18 14:10:37 +01:00
parent be8a5a4acc
commit e5e03659d6
2 changed files with 3 additions and 1 deletions

View File

@@ -83,7 +83,7 @@ func (controller *KeySendController) KeySend(c echo.Context) error {
for key, value := range reqBody.CustomRecords {
intKey, err := strconv.Atoi(key)
if err != nil {
return err
return c.JSON(http.StatusBadRequest, responses.BadArgumentsError)
}
invoice.DestinationCustomRecords[uint64(intKey)] = []byte(value)
}