mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 17:18:32 +02:00
Fix sort priority
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||||
|
|
||||||
export type Environment = { model: "environment", id: string, workspaceId: string, createdAt: string, updatedAt: string, name: string, public: boolean, parentModel: string, parentId: string | null, variables: Array<EnvironmentVariable>, color: string | null, };
|
export type Environment = { model: "environment", id: string, workspaceId: string, createdAt: string, updatedAt: string, name: string, public: boolean, parentModel: string, parentId: string | null, variables: Array<EnvironmentVariable>, color: string | null, sortPriority: number, };
|
||||||
|
|
||||||
export type EnvironmentVariable = { enabled?: boolean, name: string, value: string, id?: string, };
|
export type EnvironmentVariable = { enabled?: boolean, name: string, value: string, id?: string, };
|
||||||
|
|
||||||
|
|||||||
@@ -190,9 +190,7 @@ function importEnvironment(
|
|||||||
createdAt: e.created ? new Date(e.created).toISOString().replace('Z', '') : undefined,
|
createdAt: e.created ? new Date(e.created).toISOString().replace('Z', '') : undefined,
|
||||||
updatedAt: e.modified ? new Date(e.modified).toISOString().replace('Z', '') : undefined,
|
updatedAt: e.modified ? new Date(e.modified).toISOString().replace('Z', '') : undefined,
|
||||||
workspaceId: convertId(workspaceId),
|
workspaceId: convertId(workspaceId),
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
sortPriority: e.metaSortKey,
|
||||||
// @ts-expect-error
|
|
||||||
sortPriority: e.metaSortKey, // Will be added to Yaak later
|
|
||||||
parentModel: isParent ? 'workspace' : 'environment',
|
parentModel: isParent ? 'workspace' : 'environment',
|
||||||
parentId: null,
|
parentId: null,
|
||||||
model: 'environment',
|
model: 'environment',
|
||||||
|
|||||||
@@ -295,9 +295,7 @@ function importEnvironment(
|
|||||||
updatedAt: updated ? new Date(updated).toISOString().replace('Z', '') : undefined,
|
updatedAt: updated ? new Date(updated).toISOString().replace('Z', '') : undefined,
|
||||||
workspaceId: convertId(workspaceId),
|
workspaceId: convertId(workspaceId),
|
||||||
public: !e.isPrivate,
|
public: !e.isPrivate,
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
sortPriority: sortKey,
|
||||||
// @ts-expect-error
|
|
||||||
sortPriority: sortKey, // Will be added to Yaak later
|
|
||||||
parentModel: isParent ? 'workspace' : 'environment',
|
parentModel: isParent ? 'workspace' : 'environment',
|
||||||
parentId: null,
|
parentId: null,
|
||||||
model: 'environment',
|
model: 'environment',
|
||||||
|
|||||||
Reference in New Issue
Block a user