forked from engineering/cloudservices
fix tier issue
parent
b78b1a2e38
commit
3a0305b6ec
|
@ -68,7 +68,7 @@ export default class CSCLI {
|
||||||
case 'ramlimit':
|
case 'ramlimit':
|
||||||
const account = await this.client.db.Account.findOne({ username: parsed.Username }).lean().exec();
|
const account = await this.client.db.Account.findOne({ username: parsed.Username }).lean().exec();
|
||||||
const tier = await this.client.db.Tier.findOne({ id: account.tier }).lean().exec();
|
const tier = await this.client.db.Tier.findOne({ id: account.tier }).lean().exec();
|
||||||
socket.write(`${tier.resourceLimits.ram}`);
|
socket.write(`${tier.resourceLimits.ram}\n`);
|
||||||
socket.destroy();
|
socket.destroy();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue