Commit a298544b by jaymehta

.

1 parent 4b8fc48b
...@@ -111,7 +111,6 @@ module.exports = createCoreController("api::experience.experience", () => ({ ...@@ -111,7 +111,6 @@ module.exports = createCoreController("api::experience.experience", () => ({
...ctx.request.body.data.daysBoolean, ...ctx.request.body.data.daysBoolean,
image: ctx.request.body.data.image, image: ctx.request.body.data.image,
termsConditions: ctx.request.body.data.termsConditions, termsConditions: ctx.request.body.data.termsConditions,
}, },
} }
); );
...@@ -321,9 +320,14 @@ module.exports = createCoreController("api::experience.experience", () => ({ ...@@ -321,9 +320,14 @@ module.exports = createCoreController("api::experience.experience", () => ({
.query("api::experience.experience") .query("api::experience.experience")
.findMany({ .findMany({
where: { where: {
name: { $and: [
$contains: string, {
}, name: {
$contains: string,
},
},
{ approved: { $eq: "approved" } },
],
}, },
}); });
const categories = await strapi.db const categories = await strapi.db
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!