From b78b1a2e38a1cca3f99a430b1117cc5c39714383 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Tue, 7 Jul 2020 05:36:08 -0400 Subject: [PATCH] fix tier issue --- src/cscli/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;