fix(classes.doc.ts): Ensure collection initialization before creating a cursor in getCursorExtended

This commit is contained in:
2025-04-14 18:13:10 +00:00
parent c430627a21
commit de8736e99e
3 changed files with 8 additions and 1 deletions

View File

@@ -1,5 +1,11 @@
# Changelog
## 2025-04-14 - 5.8.2 - fix(classes.doc.ts)
Ensure collection initialization before creating a cursor in getCursorExtended
- Added 'await collection.init()' to guarantee that the MongoDB collection is initialized before using the cursor
- Prevents potential runtime errors when accessing collection.mongoDbCollection
## 2025-04-14 - 5.8.1 - fix(cursor, doc)
Add explicit return types and casts to SmartdataDbCursor methods and update getCursorExtended signature in SmartDataDbDoc.