Fix sanitation again

This commit is contained in:
SillyLossy 2023-06-07 18:07:41 +03:00 committed by maver
parent 4027afb737
commit f5189df319
1 changed files with 4 additions and 0 deletions

View File

@ -362,6 +362,10 @@ PromptManagerModule.prototype.addPrompt = function (prompt, identifier) {
* @returns {void}
*/
PromptManagerModule.prototype.sanitizeServiceSettings = function () {
if (this.serviceSettings.prompts === undefined) {
this.serviceSettings.prompts = [];
}
this.serviceSettings.prompts.forEach((prompt => prompt && (prompt.identifier = prompt.identifier || this.getUuidv4())));
// TODO:
// Sanitize data