hydrogen-nodejs-server icon indicating copy to clipboard operation
hydrogen-nodejs-server copied to clipboard

Add api to remove group notifications

Open harshmangalam opened this issue 3 years ago • 12 comments

Add an api to clear group notifications.

harshmangalam avatar Oct 04 '22 11:10 harshmangalam

if this is open to be picked up, I am interested.

detronetdip avatar Oct 04 '22 17:10 detronetdip

Sure

harshmangalam avatar Oct 04 '22 17:10 harshmangalam

hey @harshmangalam can you please explain me how the group notification currently works so that I can have a better understanding.

detronetdip avatar Oct 06 '22 02:10 detronetdip

When any user will create new group then a notification (type=GROUP) will be created and will send to all their friends. And when any new group post will be added then all members will get notification of type GROUP

harshmangalam avatar Oct 06 '22 03:10 harshmangalam

Create new api in notification route that can remove notification of type GROUP and related to current user

harshmangalam avatar Oct 06 '22 03:10 harshmangalam

You can follow the same way remove notification is added in notifications controller.

harshmangalam avatar Oct 06 '22 03:10 harshmangalam

Screenshot from 2022-10-07 20-51-56

I am getting this errors. Can you please tell me what is going wrong?

detronetdip avatar Oct 07 '22 15:10 detronetdip

May be this will help you https://github.com/prisma/prisma/issues/8320

harshmangalam avatar Oct 08 '22 03:10 harshmangalam

There is no space related issues. See the below ss. I am getting this error. Screenshot from 2022-10-08 10-04-25

detronetdip avatar Oct 08 '22 04:10 detronetdip

Which prisma version are you using ?

harshmangalam avatar Oct 08 '22 04:10 harshmangalam

4.3.1

detronetdip avatar Oct 08 '22 05:10 detronetdip

There is breaking changes in schema in v4 . This project is using prisma": 3.9.2

harshmangalam avatar Oct 08 '22 05:10 harshmangalam