fix(cms): remove unused @ts-expect-error
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 8s
Build & Deploy / 🧪 QA (push) Successful in 2m12s
Build & Deploy / 🏗️ Build (push) Successful in 3m39s
Build & Deploy / 🚀 Deploy (push) Successful in 26s
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s

This commit is contained in:
2026-03-05 11:56:52 +01:00
parent a32fff7d20
commit c614cf9867

View File

@@ -29,7 +29,6 @@ const dirname = path.dirname(filename);
export default buildConfig({
onInit: async (payload) => {
if (process.env.NODE_ENV === 'production') {
// @ts-expect-error - migrate() exists on the adapter but might not be in the base type
await payload.db.migrate();
await seedDatabase(payload);
}