kykep

Untitled

Nov 20th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Change first 9 code lines in db-create-base-admin.js on these (should look like on screenshot https://prnt.sc/pzp7lf):
  2. const isMaster = require('../../helpers/isMaster');
  3. const argv = process.argv.slice(2);
  4. module.exports = async function createPaypalPlans(app, cb) {
  5.     if (argv[0] && isMaster === false) {
  6.         cb();
  7.         return;
  8.     }
  9.     console.log('Create admin');
  10.  
  11. 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.
  12.  
  13. 3. Restart the server
Add Comment
Please, Sign In to add comment