Skip to content

Commit 1936d7c

Browse files
committed
code formatted using prettier
1 parent c76efce commit 1936d7c

File tree

6 files changed

+35
-36
lines changed

6 files changed

+35
-36
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ about: Create a report to help us improve
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
98

109
**Describe the bug**
1110
A clear and concise description of what the bug is.
1211

1312
**To Reproduce**
1413
Steps to reproduce the behavior:
14+
1515
1. Go to '...'
1616
2. Click on '....'
1717
3. Scroll down to '....'

.github/ISSUE_TEMPLATE/custom.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,4 @@ about: Describe this issue template's purpose here.
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
9-
10-

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Suggest an idea for this project
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
98

109
**Is your feature request related to a problem? Please describe.**

CODE_OF_CONDUCT.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ appearance, race, religion, or sexual identity and orientation.
1414
Examples of behavior that contributes to creating a positive environment
1515
include:
1616

17-
* Using welcoming and inclusive language
18-
* Being respectful of differing viewpoints and experiences
19-
* Gracefully accepting constructive criticism
20-
* Focusing on what is best for the community
21-
* Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
2222

2323
Examples of unacceptable behavior by participants include:
2424

25-
* The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
27-
* Trolling, insulting/derogatory comments, and personal or political attacks
28-
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
30-
address, without explicit permission
31-
* Other conduct which could reasonably be considered inappropriate in a
32-
professional setting
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
3333

3434
## Our Responsibilities
3535

@@ -73,4 +73,4 @@ available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.ht
7373
[homepage]: https://www.contributor-covenant.org
7474

7575
For answers to common questions about this code of conduct, see
76-
https://www.contributor-covenant.org/faq
76+
https://www.contributor-covenant.org/faq

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
Hasslefree way to book your parking space with easy cancellations and timeline extensions
44

55
---
6-
![cover image](https://github.com/Codehackerone/parkify/blob/main/public/img/coverpage.png)
7-
---
6+
7+
## ![cover image](https://github.com/Codehackerone/parkify/blob/main/public/img/coverpage.png)
8+
89
## Why Parkify?
910

1011
The application will make it easier for the drivers to find and pre-book their slots at the parking locations. The application will also save the frustration of the drivers who at times out of urgency park their cars on the street itself, which further adds to the traffic in the locality. With the use of the application, business professionals can focus on their daily tasks and not worry about their parking space.
1112

12-
1313
## Built With
1414

1515
This application is built on nodeJS, typed in javascript. Vanilla html-css-js is used to built the frontend.
@@ -84,11 +84,10 @@ Create a `.env` file then edit it with your settings. You will need:
8484

8585
## License
8686

87-
```Parkify``` is available under the MIT license. See the LICENSE file for more info.
87+
`Parkify` is available under the MIT license. See the LICENSE file for more info.
8888

8989
## Contributing
9090

91-
9291
1. Find an issue to work on from [here](https://github.com/codehackerone/parkify/issues)
9392
2. Ask the owner/maintainer for permission to work on the issue.
9493
3. Fork this repository. [For help, click here](https://docs.github.com/en/get-started/quickstart/fork-a-repo)
@@ -100,5 +99,6 @@ Create a `.env` file then edit it with your settings. You will need:
10099

101100
Please read `CODE_OF_CONDUCT.md` for details on the code of conduct, and the process for submitting pull requests.
102101

103-
---
102+
---
103+
104104
This repo is crafted with <span style="color: #8b0000;">&hearts;</span> and owned/maintained by <a href="https://github.com/codehackerone">@codehackerone</a>.

services/user.service.js

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const bcrypt = require('bcrypt');
44
const nodemailer = require('nodemailer');
55
const helper = require('../utils/helper');
66
const Transaction = require('../models/transaction.model');
7-
const axios = require("axios");
7+
const axios = require('axios');
88

99
/* ------------ JWT Configs ----------- */
1010

@@ -22,17 +22,20 @@ async function sendmail(to, subject, otp) {
2222
method: 'POST',
2323
url: 'https://rapidprod-sendgrid-v1.p.rapidapi.com/mail/send',
2424
headers: {
25-
'content-type': 'application/json',
26-
'X-RapidAPI-Host': process.env.X_RAPIDAPI_HOST,
27-
'X-RapidAPI-Key': process.env.X_RAPIDAPI_KEY,
25+
'content-type': 'application/json',
26+
'X-RapidAPI-Host': process.env.X_RAPIDAPI_HOST,
27+
'X-RapidAPI-Key': process.env.X_RAPIDAPI_KEY,
2828
},
29-
data:`{"personalizations":[{"to":[{"email":"${to}"}],"subject":"${subject}"}],"from":{"email":"[email protected]"},"content":[{"type":"text/plain","value":"Your otp is : ${otp}"}]}`
30-
};
31-
axios.request(options).then(function (response) {
32-
console.log('Email sent: ' + response.data);
33-
}).catch(function (error) {
34-
console.error(error);
35-
});
29+
data: `{"personalizations":[{"to":[{"email":"${to}"}],"subject":"${subject}"}],"from":{"email":"[email protected]"},"content":[{"type":"text/plain","value":"Your otp is : ${otp}"}]}`,
30+
};
31+
axios
32+
.request(options)
33+
.then(function (response) {
34+
console.log('Email sent: ' + response.data);
35+
})
36+
.catch(function (error) {
37+
console.error(error);
38+
});
3639
}
3740

3841
// Register... receives user object and creates new user document in the DB

0 commit comments

Comments
 (0)