mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
linting
This commit is contained in:
parent
710c1d7d89
commit
05cc01d85a
@ -1,7 +1,6 @@
|
||||
import { IsNull, getConnection } from '@dbTools/typeorm'
|
||||
import { Contribution as DbContribution } from '@entity/Contribution'
|
||||
import { ContributionMessage } from '@entity/ContributionMessage'
|
||||
import { DltTransaction } from '@entity/DltTransaction'
|
||||
import { Transaction as DbTransaction } from '@entity/Transaction'
|
||||
import { User as DbUser } from '@entity/User'
|
||||
import { UserContact } from '@entity/UserContact'
|
||||
|
||||
@ -3,7 +3,6 @@ import { randomBytes } from 'crypto'
|
||||
import { getConnection } from '@dbTools/typeorm'
|
||||
import { Contribution as DbContribution } from '@entity/Contribution'
|
||||
import { ContributionLink as DbContributionLink } from '@entity/ContributionLink'
|
||||
import { DltTransaction } from '@entity/DltTransaction'
|
||||
import { Transaction as DbTransaction } from '@entity/Transaction'
|
||||
import { TransactionLink as DbTransactionLink } from '@entity/TransactionLink'
|
||||
import { User as DbUser } from '@entity/User'
|
||||
|
||||
@ -3,7 +3,6 @@
|
||||
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import { getConnection, In } from '@dbTools/typeorm'
|
||||
import { DltTransaction } from '@entity/DltTransaction'
|
||||
import { Transaction as dbTransaction } from '@entity/Transaction'
|
||||
import { TransactionLink as dbTransactionLink } from '@entity/TransactionLink'
|
||||
import { User as dbUser } from '@entity/User'
|
||||
|
||||
@ -12,12 +12,18 @@ registerEnumType(MonitorNames, {
|
||||
description: 'Name of Monitor-keys', // this one is optional
|
||||
})
|
||||
|
||||
/* @typescript-eslint/no-extraneous-class */
|
||||
export class Monitor {
|
||||
private static locks = new Map<MonitorNames, boolean>()
|
||||
|
||||
// eslint-disable-next-line no-useless-constructor, @typescript-eslint/no-empty-function
|
||||
private constructor() {}
|
||||
|
||||
private _dummy = `to avoid unexpected class with only static properties`
|
||||
public get dummy() {
|
||||
return this._dummy
|
||||
}
|
||||
|
||||
public static isLocked(key: MonitorNames): boolean | undefined {
|
||||
if (this.locks.has(key)) {
|
||||
logger.debug(`Monitor isLocked key=${key} = `, this.locks.get(key))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user