x/db/make-admin.js (Give a person the "admin" role)
This script takes an email address and if that matches a person record in the database it will give them the “admin” role.
Example:
$ node x/db/make-admin.js test@example.com
Test User <test@example.com> is now an admin
If you are already an admin the script will tell you:
$ node x/db/make-admin.js test@example.com
Test User <test@example.com> is already an admin
If the email doesn’t match a person record you will see an error message:
$ node x/db/make-admin.js nope@example.com
Could not find person record for email: nope@example.com