export data
parent
c69f94d030
commit
8f79565472
|
@ -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}`,
|
||||
},
|
||||
})
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue