X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FWorkerBroadcastChannel.ts;h=652a27e1831e7fb7f9815745511de6c68a7fe54f;hb=81e3cc3895d5dc289404c72459246d2b5215fe82;hp=c1df1afdabb88b7dd276f4b38e891bf5eb863d79;hpb=5f7e72c1538ebf67dc5de3c29840f7b4da6704f8;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/WorkerBroadcastChannel.ts b/src/charging-station/WorkerBroadcastChannel.ts index c1df1afd..652a27e1 100644 --- a/src/charging-station/WorkerBroadcastChannel.ts +++ b/src/charging-station/WorkerBroadcastChannel.ts @@ -1,7 +1,5 @@ import { BroadcastChannel } from 'worker_threads'; -import * as uuid from 'uuid'; - import type { JsonType } from '../types/JsonType'; import type { BroadcastChannelRequest, @@ -42,7 +40,7 @@ export default abstract class WorkerBroadcastChannel extends BroadcastChannel { ); return false; } - if (uuid.validate(messageEvent.data[0]) === false) { + if (Utils.validateUUID(messageEvent.data[0]) === false) { logger.error( this.logPrefix(moduleName, 'validateMessageEvent') + ' Worker broadcast channel protocol message event data UUID field is invalid'