refactor: Simplify gateway service initialization and enhance seeding process for gacha rolls
This commit is contained in:
@@ -936,7 +936,7 @@ clear_database
|
||||
printf "\n${CYAN}=== Menjalankan Seeders ===${NC}\n"
|
||||
if [ "$SKIP_SEED" = true ]; then
|
||||
write_test_log "INFO" "Melewatkan seeding database."
|
||||
# Still seed permissions and teams even if skipping other seeds
|
||||
# Still seed permissions, teams, and gacha rolls even if skipping other seeds
|
||||
if ! RUST_LOG=debug cargo run --bin seed_permissions; then
|
||||
write_test_log "ERROR" "Gagal menjalankan seed permissions."
|
||||
exit 1
|
||||
@@ -947,6 +947,11 @@ if [ "$SKIP_SEED" = true ]; then
|
||||
exit 1
|
||||
fi
|
||||
write_test_log "SUCCESS" "Teams seeded."
|
||||
if ! RUST_LOG=debug cargo run --bin seed_gacha_rolls; then
|
||||
write_test_log "ERROR" "Gagal menjalankan seed gacha rolls."
|
||||
exit 1
|
||||
fi
|
||||
write_test_log "SUCCESS" "Gacha rolls seeded."
|
||||
else
|
||||
if ! RUST_LOG=debug cargo run --bin seeder; then
|
||||
write_test_log "ERROR" "Gagal menjalankan seeder roles permissions."
|
||||
|
||||
Reference in New Issue
Block a user