mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
* refactor(server): system config * fix: jest circular import * chore: ignore migrations in coverage report * chore: tests * chore: tests * chore: todo note * chore: remove vite config backup * chore: fix redis hostname
18 lines
483 B
TypeScript
18 lines
483 B
TypeScript
import { QueueName } from '@app/domain';
|
|
import { InjectQueue } from '@nestjs/bull';
|
|
import { Injectable, OnModuleInit } from '@nestjs/common';
|
|
import { Queue } from 'bull';
|
|
|
|
@Injectable()
|
|
export class MicroservicesService implements OnModuleInit {
|
|
constructor(
|
|
@InjectQueue(QueueName.CHECKSUM_GENERATION)
|
|
private generateChecksumQueue: Queue,
|
|
) {}
|
|
|
|
async onModuleInit() {
|
|
// wait for migration
|
|
await this.generateChecksumQueue.add({}, { delay: 10000 });
|
|
}
|
|
}
|