File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11"use strict" ;
22
33module . exports = ( srv ) => {
4- const { Header } = srv . entities ( ) ;
4+ const { Header } = srv . entities ;
55
66 srv . on ( "wsContext" , async ( ) => { } ) ;
77
Original file line number Diff line number Diff line change 11"use strict" ;
22
33module . exports = ( srv ) => {
4- const { Header, HeaderItem } = srv . entities ( ) ;
4+ const { Header, HeaderItem } = srv . entities ;
55
66 srv . before ( "CREATE" , Header , async ( req ) => {
77 await srv . emit ( "received" , req . data ) ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ module.exports = class TodoService extends cds.ApplicationService {
77 super . init ( ) ;
88
99 this . after ( "*" , ( data , context ) => {
10- const { Todo } = this . entities ( ) ;
10+ const { Todo } = this . entities ;
1111 context . on ( "succeeded" , async ( ) => {
1212 const ID = context . params ?. [ 0 ] ?. ID ;
1313 if ( ID && context . target === Todo && [ "CREATE" , "UPDATE" , "DELETE" ] . includes ( context . event ) ) {
You can’t perform that action at this time.
0 commit comments