Skip to content

Commit

Permalink
fix(core): Fix the type for InstalledNodes.latestVersion (no-changelo…
Browse files Browse the repository at this point in the history
…g) (#10782)
  • Loading branch information
netroy authored Sep 12, 2024
1 parent 8496adb commit 7d6ec65
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/databases/entities/installed-nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class InstalledNodes {
type: string;

@Column()
latestVersion: string;
latestVersion: number;

@ManyToOne('InstalledPackages', 'installedNodes')
@JoinColumn({ name: 'package', referencedColumnName: 'packageName' })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class InstalledPackagesRepository extends Repository<InstalledPackages> {
const installedNode = this.installedNodesRepository.create({
name: nodeTypes[loadedNode.name].type.description.displayName,
type: loadedNode.name,
latestVersion: loadedNode.version.toString(),
latestVersion: loadedNode.version,
package: { packageName },
});

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/test/integration/security-audit/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const MOCK_PACKAGE: InstalledPackages[] = [
{
name: 'My Test Node',
type: 'myTestNode',
latestVersion: '1',
latestVersion: 1,
} as InstalledNodes,
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const mockNode = (packageName: string) => {
return Container.get(InstalledNodesRepository).create({
name: nodeName,
type: nodeName,
latestVersion: COMMUNITY_NODE_VERSION.CURRENT.toString(),
latestVersion: COMMUNITY_NODE_VERSION.CURRENT,
package: { packageName },
});
};
Expand Down
2 changes: 1 addition & 1 deletion packages/workflow/src/Interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2447,7 +2447,7 @@ export type PublicInstalledPackage = {
export type PublicInstalledNode = {
name: string;
type: string;
latestVersion: string;
latestVersion: number;
package: PublicInstalledPackage;
};

Expand Down

0 comments on commit 7d6ec65

Please sign in to comment.