lint
This commit is contained in:
parent
377aca0458
commit
0ead7fca54
|
@ -92,7 +92,10 @@ module MongoDBModule {
|
||||||
if (json[field] instanceof Object) {
|
if (json[field] instanceof Object) {
|
||||||
json[field] = self.createObjectIds(json[field])
|
json[field] = self.createObjectIds(json[field])
|
||||||
}
|
}
|
||||||
if ((field === "_id" || field?.startsWith("$")) && typeof json[field] === "string") {
|
if (
|
||||||
|
(field === "_id" || field?.startsWith("$")) &&
|
||||||
|
typeof json[field] === "string"
|
||||||
|
) {
|
||||||
const id = json[field].match(
|
const id = json[field].match(
|
||||||
/(?<=objectid\(['"]).*(?=['"]\))/gi
|
/(?<=objectid\(['"]).*(?=['"]\))/gi
|
||||||
)?.[0]
|
)?.[0]
|
||||||
|
|
Loading…
Reference in New Issue