Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
One line added
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhishek-Sai committed Oct 21, 2018
1 parent 00a53ae commit 02bf926
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions functions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ app.post('/onSubmit', (req, res) => {
var sch = db.collection("Schools").doc(schoolId);
sch.get().then((doc) => {
if(doc.exists){
console.log("School already exists");
return(doc);

}else{
var ob = {
cheque : cheque,
Expand Down

0 comments on commit 02bf926

Please sign in to comment.