We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45f8ff2 commit 21edae9Copy full SHA for 21edae9
src/permissions/copilotApplications.view.js
@@ -13,7 +13,7 @@ module.exports = freq => new Promise((resolve, reject) => {
13
console.log("start permission check");
14
const opportunityId = _.parseInt(freq.params.id);
15
const currentUserId = freq.authUser.userId;
16
- return models.CopilotOpportunity.find({
+ return models.CopilotOpportunity.findOne({
17
where: {
18
id: opportunityId,
19
},
0 commit comments