lint
This commit is contained in:
parent
71a55eb288
commit
4cc0a327a0
1 changed files with 4 additions and 1 deletions
|
@ -92,7 +92,10 @@ module MongoDBModule {
|
|||
if (json[field] instanceof Object) {
|
||||
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(
|
||||
/(?<=objectid\(['"]).*(?=['"]\))/gi
|
||||
)?.[0]
|
||||
|
|
Loading…
Reference in a new issue