forked from engineering/cloudservices
No idea what's causing the errors
parent
2fb3b79e51
commit
ff3f4c0e9f
|
@ -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",
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue