File tree 2 files changed +5
-1
lines changed
test/test-server/common/models
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
const _ = require ( 'lodash' )
4
4
const debug = require ( 'debug' ) ( 'loopback:component:mq' )
5
+ const loopback = require ( 'loopback' )
5
6
const setupModel = require ( './setup-model' )
6
7
const Rabbit = require ( './rabbit' )
7
8
let rabbit = null
@@ -90,6 +91,9 @@ module.exports = function loopbackComponentMq(app, config) {
90
91
}
91
92
else {
92
93
debug ( `DataSource ${ options . dataSource } not found` )
94
+ const memDs = loopback . createDataSource ( { connector : 'memory' } )
95
+
96
+ setupModel ( app , memDs , { } , { } )
93
97
}
94
98
95
99
}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ module.exports = function(Event) {
10
10
if ( Event . sendOutgoingMessage ) {
11
11
Event . sendOutgoingMessage ( ctx . instance )
12
12
} else {
13
- throw new Error ( 'Method Event.sendOutgoingMessage does not exist' )
13
+ console . error ( 'Method Event.sendOutgoingMessage does not exist' )
14
14
}
15
15
next ( )
16
16
} )
You can’t perform that action at this time.
0 commit comments