File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
test/test-server/common/models Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 22
33const _ = require ( 'lodash' )
44const debug = require ( 'debug' ) ( 'loopback:component:mq' )
5+ const loopback = require ( 'loopback' )
56const setupModel = require ( './setup-model' )
67const Rabbit = require ( './rabbit' )
78let rabbit = null
@@ -90,6 +91,9 @@ module.exports = function loopbackComponentMq(app, config) {
9091 }
9192 else {
9293 debug ( `DataSource ${ options . dataSource } not found` )
94+ const memDs = loopback . createDataSource ( { connector : 'memory' } )
95+
96+ setupModel ( app , memDs , { } , { } )
9397 }
9498
9599}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ module.exports = function(Event) {
1010 if ( Event . sendOutgoingMessage ) {
1111 Event . sendOutgoingMessage ( ctx . instance )
1212 } else {
13- throw new Error ( 'Method Event.sendOutgoingMessage does not exist' )
13+ console . error ( 'Method Event.sendOutgoingMessage does not exist' )
1414 }
1515 next ( )
1616 } )
You can’t perform that action at this time.
0 commit comments