Skip to content

Commit ad59e06

Browse files
fix type error
1 parent e2f2b21 commit ad59e06

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

server/routers/resource/listResources.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ type JoinedRow = {
5757
proxyPort: number | null;
5858
enabled: boolean;
5959
domainId: string | null;
60+
headerAuthId: number | null;
6061

6162
targetId: number | null;
6263
targetIp: string | null;
@@ -262,14 +263,19 @@ export async function listResources(
262263
proxyPort: row.proxyPort,
263264
enabled: row.enabled,
264265
domainId: row.domainId,
265-
niceId: row.niceId,
266+
headerAuthId: row.headerAuthId,
266267
targets: [],
267268
};
268269
map.set(row.resourceId, entry);
269270
}
270271

271-
// Push target if present (left join can be null)
272-
if (row.targetId != null && row.targetIp && row.targetPort != null && row.targetEnabled != null) {
272+
// Push target if present
273+
if (
274+
row.targetId != null &&
275+
row.targetIp &&
276+
row.targetPort != null &&
277+
row.targetEnabled != null
278+
) {
273279
entry.targets.push({
274280
targetId: row.targetId,
275281
ip: row.targetIp,

0 commit comments

Comments
 (0)