diff --git a/api/src/core/utils/server-identifier.ts b/api/src/core/utils/server-identifier.ts index 2606b3c09..2d93051d1 100644 --- a/api/src/core/utils/server-identifier.ts +++ b/api/src/core/utils/server-identifier.ts @@ -8,3 +8,7 @@ export const getServerIdentifier = (): string => { .update(`${flashGuid}-${hostname()}`) .digest('hex'); }; + +export const serverIdentifierMatches = (serverIdentifier: string): boolean => { + return serverIdentifier === getServerIdentifier(); +} diff --git a/api/src/unraid-api/graph/id-prefix-plugin.ts b/api/src/unraid-api/graph/id-prefix-plugin.ts index 5dbe7f559..1ee09a3ad 100644 --- a/api/src/unraid-api/graph/id-prefix-plugin.ts +++ b/api/src/unraid-api/graph/id-prefix-plugin.ts @@ -15,7 +15,7 @@ const updateId = (obj: Record) => { if (current && typeof current === 'object') { if ('id' in current && typeof current.id === 'string') { - current.id = `${serverId}-${current.id}`; + current.id = `${serverId}:${current.id}`; } for (const value of Object.values(current)) {