mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-11-26 16:44:54 +00:00
notification mark as read api modified for clear all, list sorting set to updated at field, added same field
This commit is contained in:
@ -36,7 +36,7 @@ class NotificationListSerializer(serializers.ModelSerializer):
|
||||
class Meta(object):
|
||||
"""meta info"""
|
||||
model = Notification
|
||||
fields = ['id', 'notification_type', 'data', 'badge', 'is_read', 'created_at']
|
||||
fields = ['id', 'notification_type', 'data', 'badge', 'is_read', 'updated_at']
|
||||
|
||||
@staticmethod
|
||||
def get_badge(obj):
|
||||
|
||||
Reference in New Issue
Block a user