Fix loading deleted users on actions fetch. Closes #62

This commit is contained in:
Maksim Eltyshev
2020-12-13 23:17:12 +05:00
parent a3adddac6f
commit 3cdb614b57
2 changed files with 10 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ module.exports = {
const actions = await sails.helpers.getActionsForCard(inputs.cardId, inputs.beforeId);
const userIds = sails.helpers.mapRecords(actions, 'userId', true);
const users = await sails.helpers.getUsers(userIds);
const users = await sails.helpers.getUsers(userIds, true);
return exits.success({
items: actions,