Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manage lifecycle #240

Open
janlew opened this issue Nov 16, 2023 · 1 comment
Open

manage lifecycle #240

janlew opened this issue Nov 16, 2023 · 1 comment

Comments

@janlew
Copy link

janlew commented Nov 16, 2023

Hello, it is possible to add lifecycles e.g. "beforeUpdate" to comments?
I want to make review system with approval flow.
I thought about something like this:

  1. Comment (review) with reaction (from strapi-plugin-reactions [start-1, star-2, ..., start-5]) is added by user
  2. At first reaction is connected with comment not with commented product
  3. Admin approves comment and lifecycles "beforeUpdate" adds reaction to commented product

So reaction will be added to product only after comment approval.
Is something like this possible?

@CodeVoyager
Copy link
Contributor

Hi @janlew

Have a look if #251 PR will cover your needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants