mozilla / fxa-auth-server

DEPRECATED - Migrated to https://github.com/mozilla/fxa
Mozilla Public License 2.0
399 stars 121 forks source link

fix(profile_server_messaging): fix db constructor signature #2964

Closed ianb closed 5 years ago

ianb commented 5 years ago

Fixes #2916. The signature didn't cause any bugs, since the DB object is only used for very specific things in the profile_server_messaging and must-reset scripts, but this corrects the invocation.

Also makes the UnblockCode parameter explicitly optional.

I wasn't sure if a test was necessary here. The bad signature doesn't represent any outward bug. profileUpdates (which does all the work in this script) is tested elsewhere.