Skip to content

Commit

Permalink
retain testing
Browse files Browse the repository at this point in the history
  • Loading branch information
anjanaw committed Mar 11, 2024
1 parent ec26ed6 commit 1275bc3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controllers/cbr_cycle.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ module.exports.setDefault = async (req, res) => {
module.exports.retain = async (req, res) => {
try {
const usecase = await Usecase.findById(req.params.id);
console.log(usecase.id, usecase.version);
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.length", contents.length);
const outcome = analyticsUtil.caseOutcome(contents);
Expand Down

0 comments on commit 1275bc3

Please sign in to comment.