Revert "Add maxmind license key (#12)"

This reverts commit 02beda5a40.
This commit is contained in:
Arwid Thornström
2022-12-06 13:33:30 +01:00
parent 320d3031bc
commit c7090fc1f3
3 changed files with 24 additions and 29 deletions
@@ -17,7 +17,7 @@ module.exports = {
description: 'Show status for available testservers (s)',
hidden: false,
run: async (toolbox: GluegunMenuToolbox) => {
const { system, strings } = toolbox
const stacks = JSON.parse(strings.trim(await system.run(`aws cloudformation list-stacks`)));
@@ -45,14 +45,14 @@ module.exports = {
updated: '',
}
}
}
return Promise.resolve(null);
}));
const curratedStacks: Stack[] = teststacks.filter(Boolean);
const status = (status: string) => {
const status = (status: string) => {
switch(status) {
case 'NO_STATUS':
return `(${chalk.red.bold('?')})`;
@@ -78,10 +78,10 @@ module.exports = {
const timeSince = (date: number) => {
const now = Date.now();
let seconds = Math.floor((now - date) / 1000);
let interval = seconds / 31536000;
var seconds = Math.floor((now - date) / 1000);
var interval = seconds / 31536000;
if (interval > 1) {
return Math.floor(interval) + " years";
}