@flink-app/flink 2.0.0-alpha.74 → 2.0.0-alpha.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/src/FlinkRepo.d.ts +5 -1
- package/package.json +1 -1
- package/src/FlinkRepo.ts +1 -1
package/CHANGELOG.md
CHANGED
package/dist/src/FlinkRepo.d.ts
CHANGED
|
@@ -37,6 +37,10 @@ export declare abstract class FlinkRepo<C extends FlinkContext, Model extends Do
|
|
|
37
37
|
* @returns
|
|
38
38
|
*/
|
|
39
39
|
buildId(id: string | ObjectId): ObjectId;
|
|
40
|
-
|
|
40
|
+
protected objectIdToString<T>(doc: T & {
|
|
41
|
+
_id?: any;
|
|
42
|
+
}): T & {
|
|
43
|
+
_id?: any;
|
|
44
|
+
};
|
|
41
45
|
}
|
|
42
46
|
export {};
|
package/package.json
CHANGED
package/src/FlinkRepo.ts
CHANGED
|
@@ -110,7 +110,7 @@ export abstract class FlinkRepo<C extends FlinkContext, Model extends Document>
|
|
|
110
110
|
return oid;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
|
|
113
|
+
protected objectIdToString<T>(doc: T & { _id?: any }) {
|
|
114
114
|
if (doc && doc._id) {
|
|
115
115
|
doc._id = doc._id.toString();
|
|
116
116
|
}
|