aboutsummaryrefslogtreecommitdiff
path: root/src/server/ApiManagers/UtilManager.ts
diff options
context:
space:
mode:
authorSam Wilkins <35748010+samwilkins333@users.noreply.github.com>2020-02-12 03:35:02 -0500
committerSam Wilkins <35748010+samwilkins333@users.noreply.github.com>2020-02-12 03:35:02 -0500
commit307e011a5fbe0433b75cd3d00c0d4d50d578fea0 (patch)
tree028c1c833e6321041694215bf0d3d6817c4b0c7f /src/server/ApiManagers/UtilManager.ts
parent11a909858e4e6fe66d5c19041bf7a8c5c1e4a547 (diff)
fixed bugs and intentional behaviors of importer, namely destroying the size stream and making DOF and price optional fields, respectively
Diffstat (limited to 'src/server/ApiManagers/UtilManager.ts')
-rw-r--r--src/server/ApiManagers/UtilManager.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/ApiManagers/UtilManager.ts b/src/server/ApiManagers/UtilManager.ts
index 4cb57a4e7..5aac8261e 100644
--- a/src/server/ApiManagers/UtilManager.ts
+++ b/src/server/ApiManagers/UtilManager.ts
@@ -42,7 +42,10 @@ export default class UtilManager extends ApiManager {
register({
method: Method.GET,
subscription: "/buxton",
- secureHandler: async ({ res }) => res.send(await executeImport())
+ secureHandler: async ({ req, res }) => {
+ req.setTimeout(300000);
+ res.send(await executeImport());
+ }
});
register({