Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Change first 9 code lines in db-create-base-admin.js on these (should look like on screenshot https://prnt.sc/pzp7lf):
- const isMaster = require('../../helpers/isMaster');
- const argv = process.argv.slice(2);
- module.exports = async function createPaypalPlans(app, cb) {
- if (argv[0] && isMaster === false) {
- cb();
- return;
- }
- console.log('Create admin');
- 2. Enter the DB in "role" table, make sure there is no "admin" role. If it is there, then delete it. The script will create it again.
- 3. Restart the server
Add Comment
Please, Sign In to add comment