-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(general): new core refactor (#59)
New core refactor BREAKING CHANGE: new core refactor
- Loading branch information
1 parent
6585b3b
commit 60e5658
Showing
4 changed files
with
10 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,8 +140,7 @@ exports.claimCode = async (req, res) => { | |
await codeToClaim.update({ claimed_by: req.user.id }); | ||
|
||
await mailer.sendMail({ | ||
from: '[email protected]', | ||
to: req.user.user.email, | ||
to: req.user.email, | ||
subject: `Your ${req.integration.name} discount code`, | ||
template: 'custom.html', | ||
parameters: { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
{ | ||
"success": true, | ||
"data": { | ||
"user_id": 1, | ||
"user": { | ||
"superadmin": true, | ||
"name": "admin", | ||
"member_id": null, | ||
"inserted_at": "2018-05-03T23:12:01.111566", | ||
"id": 1, | ||
"email": "[email protected]", | ||
"active": true | ||
}, | ||
"seo_url": "microservice", | ||
"superadmin": true, | ||
"username": "admin", | ||
"member_id": null, | ||
"inserted_at": "2018-05-03T23:12:01.111566", | ||
"id": 1, | ||
"email": "[email protected]", | ||
"active": true, | ||
"primary_body_id": null, | ||
"primary_body": null, | ||
"phone": "+123456789", | ||
|
@@ -62,7 +58,6 @@ | |
"approved": true | ||
} | ||
], | ||
"id": 1, | ||
"gender": "machine", | ||
"first_name": "Microservice", | ||
"date_of_birth": "2010-04-17", | ||
|