fix tier issue

merge-requests/4/head
Matthew 2020-07-07 05:36:08 -04:00
parent 4d02a5feef
commit b78b1a2e38
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 1 deletions

View File

@ -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;