diff --git a/src/cscli/main.ts b/src/cscli/main.ts index 6aaba58..b2452da 100644 --- a/src/cscli/main.ts +++ b/src/cscli/main.ts @@ -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;