File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,9 @@ const ConfigType = class ConfigType {
6969 } ) ;
7070
7171 await Promise . all ( relations . map ( async ( relation ) => {
72- await strapi . entityService . delete ( this . queryString , relation . id ) ;
72+ await strapi . query ( queryString ) . delete ( {
73+ where : { id : relation . id } ,
74+ } ) ;
7375 } ) ) ;
7476 } ) ) ;
7577
@@ -117,7 +119,7 @@ const ConfigType = class ConfigType {
117119 data : query ,
118120 } ) ;
119121 } catch ( error ) {
120- strapi . log . warn ( logMessage ( `Use Query Engine API instead of Entity Service API for type ${ this . configPrefix } ` ) ) ;
122+ console . warn ( logMessage ( `Use Query Engine API instead of Entity Service API for type ${ this . configPrefix } ` ) ) ;
121123 await queryAPI . update ( { where : combinedUidWhereFilter , data : query } ) ;
122124 }
123125
You can’t perform that action at this time.
0 commit comments