supabase / cli

Supabase CLI. Manage postgres migrations, run Supabase locally, deploy edge functions. Postgres backups. Generating types from your database schema.
https://supabase.com/docs/reference/cli/about
MIT License
1.09k stars 212 forks source link

fix: initialise test otp to an empty map #2919

Closed sweatybridge closed 6 days ago

sweatybridge commented 6 days ago

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

If user declares an empty [sms.test_otp] without any entries, auth config would show a diff with remote set to nil.

This causes unnecessary config update being enqueued on api.

What is the new behavior?

Always initialise a non-nil map to avoid this problem.

Additional context

Add any other context or screenshots.