We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bd589f0 + 2e377d8 commit eb82d0dCopy full SHA for eb82d0d
src/modules/workspace/services/collection-request.service.ts
@@ -1842,6 +1842,16 @@ export class CollectionRequestService {
1842
const collectionData = await this.collectionReposistory.getCollection(
1843
aiRequest.collectionId,
1844
);
1845
+
1846
+ console.log("Collection: ", collection)
1847
+ // Decrypt authValue in flat structure
1848
+ if (collection?.aiRequest?.auth?.apiKey?.authValue) {
1849
+ collection.aiRequest.auth.apiKey.authValue = this.encryptionService.decrypt(
1850
+ String(collection.aiRequest.auth.apiKey.authValue),
1851
+ );
1852
+ }
1853
1854
1855
const currentWorkspaceObject = new ObjectId(aiRequest.workspaceId);
1856
const updateWorkspaceData: Partial<Workspace> = {
1857
updatedAt: new Date(),
0 commit comments