Real-Dev-Squad / website-backend

The backend code for all our website-related apps
https://api.realdevsquad.com/
MIT License
46 stars 201 forks source link

Refactor type enum used in logs collection #1978

Open palakgupta2712 opened 3 months ago

palakgupta2712 commented 3 months ago

Issue Description

Currently we don't have proper enum for type. We are using different type of formatting in naming the type to store in logs collection. Also, we need to refactor the code how it's been used, so migration and refactoring for code has to be taken care from this.

Issue got raised while implementing this feature. https://github.com/Real-Dev-Squad/website-backend/pull/1976#discussion_r1534294419

Current Behavior

current logs collection have this kind of type, which is not in right format for the constants.

image

Expected Behavior

With this task have to make the constants for type to be stored in logs collection in same format.

Screenshots

Reproducibility

Steps to Reproduce

Severity/Priority

Additional Information

Checklist