Replace _id by id

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-05-05 20:20:00 +04:00
parent a9f2be20d5
commit bb0bfdb89d
4 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
'use strict';
const jwennTeksEpiId = async teksId => {
const teks = await strapi.query('teks').findOne({_id: teksId})
const teks = await strapi.query('teks').findOne({id: teksId})
return teks
}
const jwennUserEpiId = async userId => {
const user = await strapi.query('user', 'users-permissions').findOne({_id: userId})
const user = await strapi.query('user', 'users-permissions').findOne({id: userId})
return user
}