Files
tm_back/pkg
Mazyar 3f0935ee3f Enhance duplicate key error handling in MongoDB operations
- Improved the `IsDuplicateKeyError` function to utilize structured error messages for better accuracy in identifying duplicate key errors.
- Introduced `duplicateKeyMessages` and `hasStructuredWriteException` functions to parse and extract relevant information from MongoDB error messages.
- Updated `DuplicateKeyMatchesField` to match duplicate key errors against specific fields by analyzing error messages rather than relying on substring matching.

This refactor enhances the clarity and reliability of duplicate key error handling, ensuring more precise identification of conflicts in MongoDB operations.
2026-06-07 14:40:42 +03:30
..
2026-05-30 16:19:21 +03:30
2025-12-05 18:10:05 +03:30
2026-04-12 12:29:35 +03:30
2026-05-30 12:29:45 +03:30
2026-05-30 12:29:45 +03:30
2026-05-25 13:23:49 +03:30