aboutsummaryrefslogtreecommitdiff
path: root/src/tasks/updatePriceItemCache.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-26 16:12:06 +0000
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-26 16:12:06 +0000
commit00ad00734ddb2c2fce8de8efcc010181c9ce1821 (patch)
treee6b79047fd2cfbef4733cfbd488ee4cb47d600d5 /src/tasks/updatePriceItemCache.ts
parent1d6e64d5c43e4398e7c0488f114acba2c8a55164 (diff)
downloadtanzanite-00ad00734ddb2c2fce8de8efcc010181c9ce1821.tar.gz
tanzanite-00ad00734ddb2c2fce8de8efcc010181c9ce1821.tar.bz2
tanzanite-00ad00734ddb2c2fce8de8efcc010181c9ce1821.zip
feat: use Time enum
Diffstat (limited to 'src/tasks/updatePriceItemCache.ts')
-rw-r--r--src/tasks/updatePriceItemCache.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tasks/updatePriceItemCache.ts b/src/tasks/updatePriceItemCache.ts
index 096354b..6414eb0 100644
--- a/src/tasks/updatePriceItemCache.ts
+++ b/src/tasks/updatePriceItemCache.ts
@@ -1,11 +1,11 @@
-import { BushTask } from '#lib';
+import { BushTask, Time } from '#lib';
import got from 'got';
import PriceCommand, { AuctionAverages, Bazaar, LowestBIN } from '../commands/utilities/price.js';
export default class UpdatePriceItemCache extends BushTask {
public constructor() {
super('updatePriceItemCache', {
- delay: 600_000, // 10 minutes
+ delay: 10 * Time.Minute,
runOnStart: true
});
}