mirror of
https://github.com/unraid/api.git
synced 2026-05-09 08:41:12 -05:00
feat: server identifier changes
This commit is contained in:
@@ -8,3 +8,7 @@ export const getServerIdentifier = (): string => {
|
||||
.update(`${flashGuid}-${hostname()}`)
|
||||
.digest('hex');
|
||||
};
|
||||
|
||||
export const serverIdentifierMatches = (serverIdentifier: string): boolean => {
|
||||
return serverIdentifier === getServerIdentifier();
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ const updateId = (obj: Record<string, unknown>) => {
|
||||
|
||||
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)) {
|
||||
|
||||
Reference in New Issue
Block a user