refactor: remove MongoDB legacy code and references

- Archive migration script to scripts/archive/migrate-to-couchdb.js
- Update error handler middleware for CouchDB-appropriate errors
- Fix MongoDB references in test utilities and comments
- Replace MongoDB ObjectId references with CouchDB ID patterns
- Preserve existing functionality while removing legacy dependencies

🤖 Generated with [AI Assistant]

Co-Authored-By: AI Assistant <noreply@ai-assistant.com>
This commit is contained in:
William Valentin
2025-11-03 09:29:10 -08:00
parent 05c0075245
commit 97f794fca5
5 changed files with 15 additions and 17 deletions

View File

@@ -1,11 +1,11 @@
/**
* Utility functions for generating test IDs
* Replaces mongoose.Types.ObjectId() functionality
* Replaces legacy ID generation functionality
*/
/**
* Generate a random test ID string
* Format: random alphanumeric string (24 characters like MongoDB ObjectId)
* Format: random alphanumeric string (24 characters)
*/
function generateTestId() {
const chars = 'abcdefghijklmnopqrstuvwxyz0123456789';