No idea what's causing the errors

merge-requests/4/head
Bsian 2020-05-04 02:00:16 +01:00
parent 2fb3b79e51
commit ff3f4c0e9f
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
2 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,7 @@
"axios": "^0.19.0", "axios": "^0.19.0",
"body-parser": "^1.19.0", "body-parser": "^1.19.0",
"eris": "^0.11.2", "eris": "^0.11.2",
"eris-pagination": "bsian03/eris-pagination#dev", "eris-pagination": "git+https://github.com/bsian03/eris-pagination#a10c026e9ce0b9a99799294b7b2a64d5268be56e",
"express": "^4.17.1", "express": "^4.17.1",
"fs-extra": "^8.1.0", "fs-extra": "^8.1.0",
"helmet": "^3.21.2", "helmet": "^3.21.2",

View File

@ -18,6 +18,7 @@ export default function memory(client: Client) {
// memory in megabytes // memory in megabytes
const memoryConversion = mem / 1024 / 1024; const memoryConversion = mem / 1024 / 1024;
const userLimits: { soft?: number, hard?: number } = {}; const userLimits: { soft?: number, hard?: number } = {};
// @ts-ignore
const tier: Tiers = await client.db.Tier.findOne({ id: acc.tier }).lean().exec(); const tier: Tiers = await client.db.Tier.findOne({ id: acc.tier }).lean().exec();
userLimits.soft = acc.ramLimitNotification; userLimits.soft = acc.ramLimitNotification;
userLimits.hard = tier.resourceLimits.ram; userLimits.hard = tier.resourceLimits.ram;