mirror of
https://github.com/getAlby/lndhub.go.git
synced 2026-01-06 14:35:36 +01:00
update tests with custom record
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user