Skip to content

Commit c08ae45

Browse files
Multipage Surveys (#40)
* First page Co-Authored-By: Karan Sampath <[email protected]> * Delete survey_page.pug Co-Authored-By: Karan Sampath <[email protected]> * Rectifying previous issues * Remove cookie dependency by not accessing request body * Csrf protection * Updates to rendering and posting * Fixed submission Co-authored-by: Sumant R Shringari <[email protected]>
1 parent 47d505a commit c08ae45

File tree

5 files changed

+428
-87
lines changed

5 files changed

+428
-87
lines changed

google_drive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ import request = require("request");
5151
// }
5252

5353
// Returns JSON of CSV string
54-
export const parseCSV = (csvData: string): Promise<string> => {
54+
export const parseCSV = (csvData: string): Promise<Object[]> => {
5555
return new Promise((resolve, reject) => {
5656
parse(csvData, { columns: true }, (err, JSONData) => {
5757
if (err) reject(err);

package-lock.json

Lines changed: 73 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"stop_mongo": "sudo service mongodb stop"
1212
},
1313
"dependencies": {
14+
"@types/csurf": "^1.11.2",
1415
"axios": "^0.24.0",
1516
"bcryptjs": "^2.4.3",
1617
"body-parser": "^1.19.0",

0 commit comments

Comments
 (0)