Skip to content

Commit 7b44c62

Browse files
committed
fix: remove undefined ccIterationsKey from session clear logic
1 parent b01e971 commit 7b44c62

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎apps/dashboard-api/src/controllers/ai.controller.js‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,10 +333,7 @@ const collectionCreator = async (req, res, next) => {
333333
const clearCollectionCreatorSession = async (req, res, next) => {
334334
try {
335335
const { projectId } = req.params;
336-
await Promise.all([
337-
redis.del(ccSessionKey(projectId, req.user._id)),
338-
redis.del(ccIterationsKey(projectId, req.user._id))
339-
]);
336+
await redis.del(ccSessionKey(projectId, req.user._id));
340337
return new ApiResponse({}, "Session cleared").send(res);
341338
} catch(err) {
342339
console.error("clearCollectionCreatorSession error", err);

0 commit comments

Comments
 (0)