export data

main
alex 2024-02-03 23:55:30 +01:00
parent c69f94d030
commit 8f79565472
1 changed files with 4 additions and 2 deletions

View File

@ -706,8 +706,10 @@ export async function ExportUserAccount(req: Request, res: Response) {
},
};
const accountExportId = newAccountExportId();
fs.writeJson(
`./user-profile-exports/${newAccountExportId()}.json`,
`./user-profile-exports/${accountExportId}.json`,
exportData
);
@ -724,7 +726,7 @@ export async function ExportUserAccount(req: Request, res: Response) {
b: {
accountExportDownloadUrl: `${
process.env.ACCOUNT_EXPORT_URL as string
}${user.user_id}`,
}${accountExportId}`,
},
})
)