8524-devToTest #3415

Merged
alexm merged 343 commits from 8524-devToTest into test 2025-02-04 13:42:16 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 1f6779d86b - Show all commits

View File

@ -23,7 +23,7 @@ module.exports = Self => {
value = ctx.data.value;
}
const models = Self.app.models;
const validTag = await models.Tag.findOne({where: {id: tagFk}});
const validTag = await models.Tag.findById(tagFk);
if (validTag.validationRegex) {
const regexString = validTag.validationRegex.replace(/\\\\/g, '\\');