Skip to content

Commit 8d98a55

Browse files
authored
Merge pull request #3167 from DFXswiss/develop
2 parents 7cca9ec + c591c26 commit 8d98a55

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/subdomains/generic/user/models/user-data/user-data.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ export class UserDataService {
350350
async downloadUserData(userDataIds: number[], checkOnly = false): Promise<Buffer> {
351351
let count = userDataIds.length;
352352
const zip = new JSZip();
353-
const downloadTargets = Config.fileDownloadConfig.reverse();
353+
const downloadTargets = [...Config.fileDownloadConfig].reverse();
354354
const errors: { userDataId: number; errorType: string; folder: string; details: string }[] = [];
355355

356356
const escapeCsvValue = (value: string): string => {
@@ -360,7 +360,7 @@ export class UserDataService {
360360
return value;
361361
};
362362

363-
for (const userDataId of userDataIds.reverse()) {
363+
for (const userDataId of [...userDataIds].reverse()) {
364364
const userData = await this.getUserData(userDataId, { kycSteps: true });
365365

366366
if (!userData) {

0 commit comments

Comments
 (0)