aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAbdullah Ahmed <abdullah_ahmed@brown.edu>2019-08-13 11:02:40 -0400
committerAbdullah Ahmed <abdullah_ahmed@brown.edu>2019-08-13 11:02:40 -0400
commitb38e808dc7790cc8698824329ae63b3af210996c (patch)
tree4ae8094b0bf30fa0411955cee01176de567b3953 /src
parent131f3fa7d1f1a42be58de63ee54fecd20e6d9fbf (diff)
sup
Diffstat (limited to 'src')
-rw-r--r--src/server/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/index.ts b/src/server/index.ts
index 3b74632fc..9c3112661 100644
--- a/src/server/index.ts
+++ b/src/server/index.ts
@@ -326,7 +326,7 @@ app.post("/uploadDoc", (req, res) => {
for (const name in files) {
const path_2 = files[name].path;
const zip = new AdmZip(path_2);
- zip.getEntries().forEach(entry => {
+ zip.getEntries().forEach((entry: any) => {
if (!entry.entryName.startsWith("files/")) return;
let dirname = path.dirname(entry.entryName) + "/";
let extname = path.extname(entry.entryName);