Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Commit

Permalink
Merge branch 'dev' of github.com:erxes/erxes into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
munkhsaikhan committed Oct 11, 2023
2 parents a47e543 + 1691c9b commit fcc41d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/messageBroker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,11 +457,11 @@ export const initBroker = async options => {
consumeRPCQueue('core:branches.find', async ({ subdomain, data }) => {
const models = await generateModels(subdomain);

const { query } = data;
const { query, fields } = data;

return {
status: 'success',
data: await models.Branches.find(query).lean()
data: await models.Branches.find(query, fields).lean()
};
});

Expand Down

0 comments on commit fcc41d7

Please sign in to comment.