@stamhoofd/backend 2.17.0 → 2.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stamhoofd/backend",
|
|
3
|
-
"version": "2.17.
|
|
3
|
+
"version": "2.17.2",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"postmark": "4.0.2",
|
|
61
61
|
"stripe": "^16.6.0"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "d43bd511d80deca4f467cd48fecf86a711c04565"
|
|
64
64
|
}
|
|
@@ -5,7 +5,7 @@ import { SimpleError } from '@simonbackx/simple-errors';
|
|
|
5
5
|
import { Email } from '@stamhoofd/email';
|
|
6
6
|
import { ArchiverWriterAdapter, exportToExcel, XlsxTransformerSheet, XlsxWriter } from '@stamhoofd/excel-writer';
|
|
7
7
|
import { getEmailBuilderForTemplate, Platform, RateLimiter } from '@stamhoofd/models';
|
|
8
|
-
import { EmailTemplateType, ExcelExportRequest, ExcelExportResponse, ExcelExportType, LimitedFilteredRequest, PaginatedResponse, Recipient, Replacement } from '@stamhoofd/structures';
|
|
8
|
+
import { EmailTemplateType, ExcelExportRequest, ExcelExportResponse, ExcelExportType, LimitedFilteredRequest, PaginatedResponse, Recipient, Replacement, Version } from '@stamhoofd/structures';
|
|
9
9
|
import { sleep } from "@stamhoofd/utility";
|
|
10
10
|
import { Context } from '../../../helpers/Context';
|
|
11
11
|
import { fetchToAsyncIterator } from '../../../helpers/fetchToAsyncIterator';
|
|
@@ -157,7 +157,7 @@ export class ExportToExcelEndpoint extends Endpoint<Params, Query, Body, Respons
|
|
|
157
157
|
|
|
158
158
|
console.log('Done writing excel file')
|
|
159
159
|
|
|
160
|
-
const url = 'https://'+ STAMHOOFD.domains.api + '/file-cache?file=' + encodeURIComponent(file) + '&name=' + encodeURIComponent(type)
|
|
160
|
+
const url = 'https://'+ STAMHOOFD.domains.api + '/v'+ Version +'/file-cache?file=' + encodeURIComponent(file) + '&name=' + encodeURIComponent(type)
|
|
161
161
|
return url;
|
|
162
162
|
}
|
|
163
163
|
}
|