mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 02:16:03 +00:00
fix: remove persisted table comment
This commit is contained in:
parent
bd57c683af
commit
398491f0c3
@ -68,7 +68,7 @@ async function addPersistTables({ strapi }, tableNames) {
|
||||
async function removePersistedTables({ strapi }, tableNames) {
|
||||
const persistedTables = await getPersistedTables({ strapi }); // Array<{name: string, dependsOn: Array<{name: string}>}>
|
||||
|
||||
// Using differenceWith instead of filter to avoid mutating the original array
|
||||
// Get new tables to be persisted, remove tables if they already were persisted
|
||||
const newPersistedTables = differenceWith(
|
||||
(t1, t2) => t1.name === t2,
|
||||
persistedTables,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user