Skip to content

Commit

Permalink
fix: formatter func type
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-yarmosh committed Sep 25, 2024
1 parent 24c6af3 commit bcb7835
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/override/adopted-probes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ type Row = Omit<AdoptedProbe, 'isCustomCity' | 'tags' | 'systemTags' | 'altIps'
type AdoptedFieldDescription = {
connectedField: string,
shouldUpdateIfCustomCity: boolean,
formatter?: (connectedValue: unknown) => unknown
// eslint-disable-next-line @typescript-eslint/no-explicit-any
formatter?: (connectedValue: any) => unknown
}

export class AdoptedProbes {
Expand Down Expand Up @@ -354,6 +355,7 @@ export class AdoptedProbes {
}

private async updateProbeData (adoptedProbe: AdoptedProbe, updateObject: Record<string, unknown>) {
console.log('updateObject', updateObject);
await this.sql(ADOPTED_PROBES_TABLE).where({ ip: adoptedProbe.ip }).update(updateObject);

for (const [ field, value ] of Object.entries(updateObject)) {
Expand Down

0 comments on commit bcb7835

Please sign in to comment.