Skip to content

Commit

Permalink
Merge pull request #1577 from betagouv/fix/1576
Browse files Browse the repository at this point in the history
fix: return s3 filKey instead of path
  • Loading branch information
P3rceval authored Nov 16, 2021
2 parents 559d98c + 4b310c3 commit 434cb55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/services/trip/src/actions/BuildExportAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,10 @@ export class BuildExportAction extends Action implements InitHookInterface {
private async processOtherTypeExport(filepath: string): Promise<string> {
const filename: string = path.parse(filepath).base;
const { zippath, zipname } = this.zip(filename, filepath);
await this.fileProvider.upload(BucketName.Export, zippath, zipname);
const fileKey = await this.fileProvider.upload(BucketName.Export, zippath, zipname);
this.removeFromFs(filepath);
this.removeFromFs(zippath);
return zippath;
return fileKey;
}

private async processOpendataExport(filepath: string, queryParams: any, excluded_territories: any): Promise<string> {
Expand Down

0 comments on commit 434cb55

Please sign in to comment.