INNER CODE UNIT · JavaScript

account

shadowsocks/shadowsocks-manager · plugins/account/index.js:187

  const account = await knex('account_plugin').where({ id }).then(success => {
    if(success.length) {
      return success[0];
    }
    return Promise.reject('account not found');
  });
  const update = {};
  if(options.hasOwnProperty('active')) { update.active = options.active; }
  update.type = options.type;
  update.orderId = options.orderId;
  update.userId = options.userId;
  update.autoRemove = options.autoRemove;
  update.autoRemoveDelay = options.autoRemoveDelay;
  update.multiServerFlow = options.multiServerFlow;
  if(options.hasOwnProperty('server')) {
    update.server = options.server ? JSON.stringify(options.server) : null;
  }
  if(options.type === 1) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…