import callApp from '../callApp';
import {getValue} from '../../system/system';

export default function senditems(invIdAry) {
  return callApp({
    cmd: 'trade',
    subcmd: 'senditems',
    xc: window.ajaxXC,
    target_username: getValue('itemRecipient'),
    sendItemList: invIdAry // This isn't working...
  });
}

import callApp from '../callApp';
import getValue from '../../system/getValue';

export default function senditems(invIdAry) {
  return callApp({
    cmd: 'trade',
    subcmd: 'senditems',
    xc: window.ajaxXC,
    target_username: getValue('itemRecipient'),
    items: invIdAry
  });
}

correct API for app/senditems