feat: server identifier changes

This commit is contained in:
Eli Bosley
2024-09-19 20:27:15 -07:00
parent 2951d68f9d
commit 492d45f363
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -8,3 +8,7 @@ export const getServerIdentifier = (): string => {
.update(`${flashGuid}-${hostname()}`)
.digest('hex');
};
export const serverIdentifierMatches = (serverIdentifier: string): boolean => {
return serverIdentifier === getServerIdentifier();
}
+1 -1
View File
@@ -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)) {