Skip to content

Commit

Permalink
fix: incorrect transformer annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Feb 29, 2024
1 parent 0ac8bd4 commit 5114baf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/config/populator.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { IsInt, IsPositive } from "class-validator";
import { IsNumber, IsPositive } from "class-validator";

export class PopulatorConfig {
@IsInt()
@IsNumber()
@IsPositive()
delay: number;
}
4 changes: 2 additions & 2 deletions src/config/watcher.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { IsInt, IsPositive } from "class-validator";
import { IsNumber, IsPositive } from "class-validator";

export class WatcherConfig {
@IsInt()
@IsNumber()
@IsPositive()
delay: number;
}
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const detailFactory = new DetailFactory(cfg.error, cfg.app);
const utility = new Utility(detailFactory);

const watcher = new Watcher(
cfg.app.watcher,
logger,
caches.get("live")!,
searchBuilder,
Expand All @@ -51,7 +52,7 @@ const watcher = new Watcher(
const getter = new Get(searchBuilder);
const zinc = loadZinc(cfg.zinc, auth);
const checker = new Checker(zinc, utility, zincDate);
const populator = new Populator(logger, searchBuilder);
const populator = new Populator(cfg.app.populator, logger, searchBuilder);
const updater = new Updater(
zinc,
utility,
Expand Down

0 comments on commit 5114baf

Please sign in to comment.