mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
chore(server): eslint await-thenable (#7545)
* await-thenable * fix library watchers * moar eslint * fix test * fix typo * try to remove check void return * fix checksVoidReturn * move to domain utils * remove eslint ignores * chore: cleanup types * chore: use logger * fix: e2e --------- Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com> Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
This commit is contained in:
parent
972d5a3411
commit
5d377e5b0f
40 changed files with 133 additions and 110 deletions
|
|
@ -75,22 +75,22 @@ class JobMock implements IJobRepository {
|
|||
async resume() {}
|
||||
async empty() {}
|
||||
async setConcurrency() {}
|
||||
async getQueueStatus() {
|
||||
return null as any;
|
||||
getQueueStatus() {
|
||||
return Promise.resolve(null) as any;
|
||||
}
|
||||
async getJobCounts() {
|
||||
return null as any;
|
||||
getJobCounts() {
|
||||
return Promise.resolve(null) as any;
|
||||
}
|
||||
async pause() {}
|
||||
async clear() {
|
||||
return [];
|
||||
clear() {
|
||||
return Promise.resolve([]);
|
||||
}
|
||||
async waitForQueueCompletion() {}
|
||||
}
|
||||
|
||||
class MediaMockRepository extends MediaRepository {
|
||||
async generateThumbhash() {
|
||||
return Buffer.from('mock-thumbhash');
|
||||
generateThumbhash() {
|
||||
return Promise.resolve(Buffer.from('mock-thumbhash'));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue