Skip to content

Commit b96d1ec

Browse files
Merge pull request #742 from aakashreddy-p/aakash/feat/generate-variable-response-format
feat: response formatting for Generate variables SPRW-1652.
2 parents 3e53b5a + 9c7424d commit b96d1ec

File tree

2 files changed

+140
-112
lines changed

2 files changed

+140
-112
lines changed

src/modules/workspace/controllers/collection.controller.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1622,15 +1622,17 @@ export class collectionController {
16221622
const user = request?.user;
16231623
const workspaceId = collectionDto?.workspaceId
16241624
const collectionVariables = await this.collectionRequestService.generateVariables(
1625-
collectionId,
1626-
workspaceId,
1627-
user
1628-
);
1625+
collectionId,
1626+
workspaceId,
1627+
user,
1628+
);
16291629
const responseData = new ApiResponseService(
16301630
"Success",
16311631
HttpStatusCode.OK,
1632-
collectionVariables);
1633-
};
1632+
collectionVariables,
1633+
);
1634+
return res.status(responseData.httpStatusCode).send(responseData);
1635+
}
16341636
/**
16351637
* Endpoint to update all the New generated Variables in requests.
16361638
*

0 commit comments

Comments
 (0)