[QRQC_2] No implicitAny in twenty-server (#12075)
# Introduction Following https://github.com/twentyhq/twenty/pull/12068 Related with https://github.com/twentyhq/core-team-issues/issues/975 We're enabling `noImplicitAny` handled few use case manually, added a `ts-expect-error` to the others, we should plan to handle them in the future
This commit is contained in:
@ -127,6 +127,7 @@ export class AdminPanelHealthService {
|
||||
if (indicatorId === HealthIndicatorId.worker) {
|
||||
return {
|
||||
...indicatorStatus,
|
||||
// @ts-expect-error legacy noImplicitAny
|
||||
queues: (indicatorStatus?.queues ?? []).map((queue) => ({
|
||||
id: `${indicatorId}-${queue.queueName}`,
|
||||
queueName: queue.queueName,
|
||||
|
||||
@ -201,14 +201,18 @@ export class AdminPanelService {
|
||||
);
|
||||
|
||||
const versions = response.data.results
|
||||
// @ts-expect-error legacy noImplicitAny
|
||||
.filter((tag) => tag && tag.name !== 'latest')
|
||||
// @ts-expect-error legacy noImplicitAny
|
||||
.map((tag) => semver.coerce(tag.name)?.version)
|
||||
// @ts-expect-error legacy noImplicitAny
|
||||
.filter((version) => version !== undefined);
|
||||
|
||||
if (versions.length === 0) {
|
||||
return { currentVersion, latestVersion: 'latest' };
|
||||
}
|
||||
|
||||
// @ts-expect-error legacy noImplicitAny
|
||||
versions.sort((a, b) => semver.compare(b, a));
|
||||
const latestVersion = versions[0];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user