mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
refactor(server): job repository (#1382)
* refactor(server): job repository * refactor: job repository * chore: generate open-api * fix: job panel * Remove incorrect subtitle Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
parent
f4c90426a5
commit
4cfac47674
34 changed files with 418 additions and 1124 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { AssetEntity } from '@app/infra';
|
||||
import { QueueName } from '@app/domain';
|
||||
import { JobName, QueueName } from '@app/domain';
|
||||
import { Process, Processor } from '@nestjs/bull';
|
||||
import { Logger } from '@nestjs/common';
|
||||
import { InjectRepository } from '@nestjs/typeorm';
|
||||
|
|
@ -15,7 +15,7 @@ export class GenerateChecksumProcessor {
|
|||
private assetRepository: Repository<AssetEntity>,
|
||||
) {}
|
||||
|
||||
@Process()
|
||||
@Process(JobName.CHECKSUM_GENERATION)
|
||||
async generateChecksum() {
|
||||
const pageSize = 200;
|
||||
let hasNext = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue