chore: code cleanup

This commit is contained in:
Jamie Howard 2023-03-08 11:20:23 +00:00
parent 9dacb1676f
commit 8a80c2a68e

View File

@ -142,7 +142,9 @@ function enableReviewWorkflow({ strapi }) {
entity: contentTypeMetadata.tableName,
})
.toSQL();
// Insert the clone relations
// Insert rows for all entries of the content type that do not have a
// default stage
await connection(joinTable.name).insert(
connection.raw(
`(${columnsToInsert.join(',')}) ${selectStatement.sql}`,