mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
refactor: job names (#19949)
This commit is contained in:
parent
e73abe0762
commit
bcb968e3d1
37 changed files with 334 additions and 343 deletions
|
|
@ -131,7 +131,7 @@ describe(NotificationService.name, () => {
|
|||
it('should queue the generate thumbnail job', async () => {
|
||||
await sut.onAssetShow({ assetId: 'asset-id', userId: 'user-id' });
|
||||
expect(mocks.job.queue).toHaveBeenCalledWith({
|
||||
name: JobName.GenerateThumbnails,
|
||||
name: JobName.AssetGenerateThumbnails,
|
||||
data: { id: 'asset-id', notify: true },
|
||||
});
|
||||
});
|
||||
|
|
@ -146,7 +146,7 @@ describe(NotificationService.name, () => {
|
|||
it('should queue notify signup event if notify is true', async () => {
|
||||
await sut.onUserSignup({ id: '', notify: true });
|
||||
expect(mocks.job.queue).toHaveBeenCalledWith({
|
||||
name: JobName.NotifySignup,
|
||||
name: JobName.NotifyUserSignup,
|
||||
data: { id: '', tempPassword: undefined },
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue