From f8cef5e7a5642ffe4b0b98478fd8a9658b14655e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Sat, 14 May 2022 19:49:25 +0400 Subject: [PATCH] Fix strapi query error --- src/api/parole/content-types/parole/lifecycles.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/parole/content-types/parole/lifecycles.js b/src/api/parole/content-types/parole/lifecycles.js index 16d7e36..c28913e 100644 --- a/src/api/parole/content-types/parole/lifecycles.js +++ b/src/api/parole/content-types/parole/lifecycles.js @@ -47,7 +47,7 @@ const jwennUserEpiId = async userId => { return null } - const user = await strapi.query.db.query('plugin::users-permissions.user').findOne({id: userId}) + const user = await strapi.db.query('plugin::users-permissions.user').findOne({id: userId}) return user }