mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
fix(core): Fix the type for InstalledNodes.latestVersion (no-changelog) (#10782)
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
Benchmark Docker Image CI / build (push) Waiting to run
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
Benchmark Docker Image CI / build (push) Waiting to run
This commit is contained in:
parent
8496adb94f
commit
7d6ec6544e
|
@ -10,7 +10,7 @@ export class InstalledNodes {
|
|||
type: string;
|
||||
|
||||
@Column()
|
||||
latestVersion: string;
|
||||
latestVersion: number;
|
||||
|
||||
@ManyToOne('InstalledPackages', 'installedNodes')
|
||||
@JoinColumn({ name: 'package', referencedColumnName: 'packageName' })
|
||||
|
|
|
@ -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 },
|
||||
});
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@ export const MOCK_PACKAGE: InstalledPackages[] = [
|
|||
{
|
||||
name: 'My Test Node',
|
||||
type: 'myTestNode',
|
||||
latestVersion: '1',
|
||||
latestVersion: 1,
|
||||
} as InstalledNodes,
|
||||
],
|
||||
},
|
||||
|
|
|
@ -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 },
|
||||
});
|
||||
};
|
||||
|
|
|
@ -2447,7 +2447,7 @@ export type PublicInstalledPackage = {
|
|||
export type PublicInstalledNode = {
|
||||
name: string;
|
||||
type: string;
|
||||
latestVersion: string;
|
||||
latestVersion: number;
|
||||
package: PublicInstalledPackage;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue