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
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user