Skip to content

Commit bff00c1

Browse files
committed
Default variables for height and width added
1 parent 65a92e8 commit bff00c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

routes/login.routes.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ route.post('/userlogin',upload.single('profilepic'), function(req, res) {
8484
res.send("ERROR")
8585
})
8686
.then(function(use) {
87-
imagecontroller.ppResize(img,300,300)
87+
var default_height=300
88+
var default_width=300
89+
imagecontroller.ppResize(img,default_height,default_width)
8890
res.send(use)
8991
});
9092
});

0 commit comments

Comments
 (0)