refactor: Simplify gateway service initialization and enhance seeding process for gacha rolls

This commit is contained in:
MythEclipse
2025-09-26 17:50:31 +07:00
parent 14b22328de
commit 3cde18360c
3 changed files with 8 additions and 7 deletions
+6 -1
View File
@@ -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."