fix : db rumah_ibadah tidak ada
This commit is contained in:
@@ -4,7 +4,7 @@ const path = require('path');
|
||||
// Mengimpor fungsi seeder asli bawaan milik Anda
|
||||
const seed_admin = require('./seed_admin');
|
||||
const seed_petugas = require('./seed_petugas');
|
||||
const rumah_ibadah_seeder = require('./rumah_ibadah_seeder');
|
||||
|
||||
|
||||
// Jalur absolut database yang terhubung langsung ke Persistent Storage Coolify
|
||||
const db_path = '/app/data/database_baru.sqlite';
|
||||
@@ -57,8 +57,7 @@ async function inisialisasi_dan_seeding() {
|
||||
|
||||
// Catatan: Pastikan file seeder Anda mengekspor fungsi (contoh: module.exports = function...)
|
||||
if (typeof seed_admin === 'function') await seed_admin(db);
|
||||
if (typeof seed_petugas === 'function') await seed_petugas(db);
|
||||
if (typeof rumah_ibadah_seeder === 'function') await rumah_ibadah_seeder(db);
|
||||
if (typeof seed_petugas === 'function') await seed_petugas(db);
|
||||
|
||||
resolve();
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user