Skip to content

Commit

Permalink
retain test
Browse files Browse the repository at this point in the history
  • Loading branch information
anjanaw committed Jan 25, 2024
1 parent 9a9d4fa commit c4681db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/cbr_cycle.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ module.exports.setDefault = async (req, res) => {
module.exports.retain = async (req, res) => {
try {
const usecase = await Usecase.findById(req.params.id);
const contents = await Interaction.find({ usecase: req.params.id, usecase_version: usecase.version }, ['user', 'createdAt', 'usecase_version', 'interaction']).populate('user').populate('interaction').sort({ createdAt: "desc" });
const contents = await Interaction.find({ usecase: usecase.id, usecase_version: usecase.version }, ['user', 'createdAt', 'usecase_version', 'interaction']).populate('user').populate('interaction').sort({ createdAt: "desc" });
console.log("contents", JSON.stringify(contents));
const outcome = analyticsUtil.caseOutcome(contents)
console.log("outcome", JSON.stringify(outcome));
Expand Down

0 comments on commit c4681db

Please sign in to comment.