@eeplatform/basic-edu 1.4.1 → 1.4.2
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 +6 -0
- package/dist/index.d.ts +6 -6
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1940,6 +1940,27 @@ function MLearner(value) {
|
|
|
1940
1940
|
throw new BadRequestError4("Invalid school format");
|
|
1941
1941
|
}
|
|
1942
1942
|
}
|
|
1943
|
+
if (value.createdBy && typeof value.createdBy === "string") {
|
|
1944
|
+
try {
|
|
1945
|
+
value.createdBy = new ObjectId3(value.createdBy);
|
|
1946
|
+
} catch (error2) {
|
|
1947
|
+
throw new BadRequestError4("Invalid createdBy format");
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1950
|
+
if (value.updatedBy && typeof value.updatedBy === "string") {
|
|
1951
|
+
try {
|
|
1952
|
+
value.updatedBy = new ObjectId3(value.updatedBy);
|
|
1953
|
+
} catch (error2) {
|
|
1954
|
+
throw new BadRequestError4("Invalid updatedBy format");
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
if (value.deletedBy && typeof value.deletedBy === "string") {
|
|
1958
|
+
try {
|
|
1959
|
+
value.deletedBy = new ObjectId3(value.deletedBy);
|
|
1960
|
+
} catch (error2) {
|
|
1961
|
+
throw new BadRequestError4("Invalid deletedBy format");
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1943
1964
|
return {
|
|
1944
1965
|
_id: value._id ?? void 0,
|
|
1945
1966
|
region: value.region,
|