forked from engineering/cloudservices
fix tier issue
parent
4d02a5feef
commit
b78b1a2e38
|
@ -67,7 +67,7 @@ export default class CSCLI {
|
||||||
break;
|
break;
|
||||||
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({ 'resourceLimits.ram': 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}`);
|
||||||
socket.destroy();
|
socket.destroy();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue