fix tier issue
parent
4d02a5feef
commit
b78b1a2e38
|
@ -67,7 +67,7 @@ export default class CSCLI {
|
|||
break;
|
||||
case 'ramlimit':
|
||||
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.destroy();
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue