Skip to content

Commit 896e3ca

Browse files
get niceid
1 parent 5ef491b commit 896e3ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/routers/resource/listResources.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ type JoinedRow = {
4646
resourceId: number;
4747
name: string;
4848
ssl: boolean;
49+
niceId: string;
4950
fullDomain: string | null;
5051
passwordId: number | null;
5152
sso: boolean;
@@ -78,7 +79,7 @@ export type ResourceWithTargets = {
7879
proxyPort: number | null;
7980
enabled: boolean;
8081
domainId: string | null;
81-
niceId: string | null;
82+
niceId: string;
8283
targets: Array<{
8384
targetId: number;
8485
ip: string;
@@ -254,6 +255,7 @@ export async function listResources(
254255
proxyPort: row.proxyPort,
255256
enabled: row.enabled,
256257
domainId: row.domainId,
258+
niceId: row.niceId,
257259
targets: [],
258260
};
259261
map.set(row.resourceId, entry);

0 commit comments

Comments
 (0)