File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,13 @@ const cds = require("@sap/cds");
2
2
const { validateNotificationTypes, readFile } = require ( "./utils" ) ;
3
3
const { processNotificationTypes } = require ( "./notificationTypes" ) ;
4
4
const { setGlobalLogLevel } = require ( "@sap-cloud-sdk/util" ) ;
5
- const { basename } = require ( 'path' ) ;
6
5
7
6
async function deployNotificationTypes ( ) {
8
7
setGlobalLogLevel ( "error" ) ;
9
8
10
9
// read notification types
11
10
const filePath = cds . env . requires ?. notifications ?. types ?? '' ;
12
- const fileName = basename ( filePath ) ;
13
- const notificationTypes = readFile ( fileName ) ;
11
+ const notificationTypes = readFile ( filePath ) ;
14
12
15
13
if ( validateNotificationTypes ( notificationTypes ) ) {
16
14
await processNotificationTypes ( notificationTypes ) ;
You can’t perform that action at this time.
0 commit comments