Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ language: node_js
node_js:
- "8.9.3"
script:
- npm test
- npm test
- npm run build
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"mongoose": "^5.4.1",
"path": "^0.12.7",
"request": "^2.83.0",
"typescript": "^2.9.2",
"typescript": "^3.5.1",
"yamljs": "^0.3.0"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion src/routes/user_resumes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ export function getUserResumes(req: Request, res: Response) {
.catch(err => {
return res.status(400).json(err);
})
};
};
6 changes: 3 additions & 3 deletions src/services/file_actions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import AWS from "aws-sdk";
import AWS, {S3} from "aws-sdk";

export async function uploadBase64Content(key, fileContent) {
const contentType = fileContent.match(/data:([^;]+);/)[1];
Expand Down Expand Up @@ -43,5 +43,5 @@ export async function getFile(filePath) {
if (err) { return reject(err); }
resolve(data);
});
});
}
}) as Promise<S3.Types.GetObjectOutput | null>;
}