mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
chore(deps): update dependency eslint-plugin-unicorn to v70 - abandoned (#29684)
* chore(deps): update dependency eslint-plugin-unicorn to v70 * fix: linting --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Dietzler <mail@ddietzler.dev>
This commit is contained in:
parent
8061a2e5ff
commit
df970da59e
266 changed files with 1260 additions and 1212 deletions
|
|
@ -138,7 +138,7 @@ export class MediumTestContext<S extends BaseService = BaseService> {
|
|||
}
|
||||
|
||||
get<T>(key: ClassConstructor<T>): T {
|
||||
if (!this.repoCache[key.name]) {
|
||||
if (!Object.hasOwn(this.repoCache, key.name)) {
|
||||
const real = newRealRepository(key, this.options.database);
|
||||
this.repoCache[key.name] = real;
|
||||
}
|
||||
|
|
@ -313,11 +313,11 @@ export class SyncTestContext extends MediumTestContext<SyncService> {
|
|||
});
|
||||
}
|
||||
|
||||
async syncStream(auth: AuthDto, types: SyncRequestType[], reset?: boolean) {
|
||||
async syncStream(auth: AuthDto, types: SyncRequestType[], shouldReset?: boolean) {
|
||||
const stream = mediumFactory.syncStream();
|
||||
// Wait for 2ms to ensure all updates are available and account for setTimeout inaccuracy
|
||||
await wait(2);
|
||||
await this.sut.stream(auth, stream, { types, reset });
|
||||
await this.sut.stream(auth, stream, { types, reset: shouldReset });
|
||||
|
||||
return stream.getResponse();
|
||||
}
|
||||
|
|
@ -750,6 +750,8 @@ const tagInsert = (tag: Partial<Insertable<TagTable>>) => {
|
|||
class CustomWritable extends Writable {
|
||||
private data = '';
|
||||
|
||||
// determined by Writable interface
|
||||
// eslint-disable-next-line unicorn/prefer-private-class-fields
|
||||
_write(chunk: any, encoding: string, callback: () => void) {
|
||||
this.data += chunk.toString();
|
||||
callback();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue