fixed transaction params
gitea/salix/dev Build queued... Details

This commit is contained in:
Joan Sanchez 2019-10-14 11:50:45 +02:00
parent 8f7b01ca11
commit 1f8f5af301
2 changed files with 3 additions and 3 deletions

View File

@ -29,8 +29,8 @@ module.exports = Self => {
const accessToken = ctx.options && ctx.options.accessToken || ctx.req && ctx.req.accessToken;
const userId = accessToken.userId;
const models = Self.app.models;
const sender = await models.Account.findById(userId, options);
const recipient = await models.Account.findById(data.recipientFk, options);
const sender = await models.Account.findById(userId, null, options);
const recipient = await models.Account.findById(data.recipientFk, null, options);
await Self.create({
sender: sender.name,

View File

@ -26,7 +26,7 @@ module.exports = function(Self) {
let address = data.address;
let newAddress = await Address.create(address, options);
let client = await Client.findById(address.clientFk, options);
let client = await Client.findById(address.clientFk, null, options);
if (data.isDefaultAddress) {
await client.updateAttributes({