@vasrefil/api-toolkit 1.0.65 → 1.0.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -59,6 +59,10 @@ class RootService {
|
|
|
59
59
|
logger_util_1.winston.error(error);
|
|
60
60
|
}
|
|
61
61
|
log_util_1.LogUtil.user_event({ serviceResponse: log_service_resp });
|
|
62
|
+
if (actionType?.includes('PURCHASE')) {
|
|
63
|
+
serviceResponse.actionType = 'PURCHASE';
|
|
64
|
+
go_mailer_util_1.GoMailerUtil.send_event({ serviceResponse });
|
|
65
|
+
}
|
|
62
66
|
go_mailer_util_1.GoMailerUtil.send_event({ serviceResponse });
|
|
63
67
|
}
|
|
64
68
|
catch (error) {
|
|
@@ -7,7 +7,7 @@ exports.GoMailerUtil = void 0;
|
|
|
7
7
|
const axios_1 = __importDefault(require("axios"));
|
|
8
8
|
const env_1 = __importDefault(require("../env"));
|
|
9
9
|
const log_util_1 = require("./log.util");
|
|
10
|
-
const helpers_1 = require("
|
|
10
|
+
const helpers_1 = require("../helpers");
|
|
11
11
|
class GoMailerUtil_ {
|
|
12
12
|
constructor() {
|
|
13
13
|
this.send_event = async (dto) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vasrefil/api-toolkit",
|
|
3
3
|
"description": "This is Vasrefil API toolkit",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.67",
|
|
5
5
|
"author": "Sodiq Alabi",
|
|
6
6
|
"main": "dist/public-api.js",
|
|
7
7
|
"types": "dist/public-api.d.ts",
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@airbrake/node": "^2.1.8",
|
|
22
|
-
"@go-mailer/go-mailer": "^3.0.0",
|
|
23
22
|
"@types/jsonwebtoken": "^8.5.0",
|
|
24
23
|
"axios": "^1.7.8",
|
|
25
24
|
"chalk": "^4.1.0",
|