mirror of
https://github.com/strapi/strapi.git
synced 2025-08-06 15:53:11 +00:00
only select the id
in the findOne query
This commit is contained in:
parent
282a688482
commit
d3de1ca7be
@ -79,7 +79,7 @@ const addUniqueValidator = (attr, validator, { uid, attributeName, entityId }) =
|
||||
: { [attributeName]: value };
|
||||
|
||||
const record = await strapi.db.query(uid).findOne({
|
||||
select: ['id', attributeName],
|
||||
select: ['id'],
|
||||
where: whereParams,
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user