Commit f62f440 1 parent 6f5c547 commit f62f440 Copy full SHA for f62f440
File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -240,8 +240,9 @@ class Service {
240
240
241
241
// Force the {raw: false} option as the instance is needed to properly
242
242
// update
243
+ const updateOptions = Object . assign ( { raw : false } , params . sequelize ) ;
243
244
244
- return this . _get ( id , { sequelize : { raw : false } , query : where } ) . then ( instance => {
245
+ return this . _get ( id , { sequelize : updateOptions , query : where } ) . then ( instance => {
245
246
if ( ! instance ) {
246
247
throw new errors . NotFound ( `No record found for id '${ id } '` ) ;
247
248
}
@@ -255,7 +256,7 @@ class Service {
255
256
}
256
257
} ) ;
257
258
258
- return instance . update ( copy , { raw : false } ) . then ( ( ) => this . _get ( id , { sequelize : options } ) ) ;
259
+ return instance . update ( copy , updateOptions ) . then ( ( ) => this . _get ( id , { sequelize : options } ) ) ;
259
260
} )
260
261
. then ( select ( params , this . id ) )
261
262
. catch ( utils . errorHandler ) ;
You can’t perform that action at this time.
0 commit comments