mirror of
https://github.com/immich-app/immich.git
synced 2025-12-26 17:25:00 +03:00
refactor: job names (#19949)
This commit is contained in:
@@ -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 },
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user