Backport "source" to V2 API

This commit is contained in:
luk3yx 2020-10-07 10:01:08 +13:00
parent ec738f6721
commit fc1414f326
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ func addV2API(router *httprouter.Router, db lurkcoin.Database,
return nil, errors.New("ERR_SERVERNOTFOUND")
}
_, err = r.Server.Pay("", target, targetServer,
_, err = r.Server.Pay(f.Get("source"), target, targetServer,
amount, isYes(f.Get("local_currency")), true)
if err != nil {
return nil, err