This repository was archived by the owner on Oct 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
service/src/services/register-resource Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ module.exports = {
4444} ;
4545
4646var modify = async ( function ( hook ) {
47- // console.log("***********hook",hook.data)
48- // console.log("***********hook",hook.params)
47+ console . log ( "***********hook" , hook . data )
48+ console . log ( "***********hook" , hook . params )
4949 let obj = { }
5050 let action_obj = { }
5151 let id = ''
@@ -63,7 +63,10 @@ var modify = async(function(hook){
6363 }
6464 obj [ "actions" ] . push ( action_obj )
6565
66- var tdata = await ( hook . app . service ( '/register-resource' ) . find ( ) )
66+ console . log ( 'module======' , module )
67+ var tdata = await ( hook . app . service ( '/register-resource' ) . find ( {
68+ 'query' :{ 'module' : module }
69+ } ) )
6770
6871 console . log ( 'tdata' , tdata )
6972
You can’t perform that action at this time.
0 commit comments