@payloadcms/db-mongodb
Advanced tools
Comparing version 3.2.3-canary.2d2e7d5 to 3.2.3-canary.3e78927
@@ -17,2 +17,3 @@ import { handleError } from './utilities/handleError.js'; | ||
try { | ||
; | ||
[doc] = await Model.create([ | ||
@@ -19,0 +20,0 @@ sanitizedData |
@@ -53,2 +53,7 @@ import { Types } from 'mongoose'; | ||
} | ||
}, | ||
{ | ||
updatedAt: { | ||
$lt: new Date(doc.updatedAt) | ||
} | ||
} | ||
@@ -55,0 +60,0 @@ ] |
@@ -34,4 +34,6 @@ import { buildJoinAggregation } from './utilities/buildJoinAggregation.js'; | ||
if (aggregate) { | ||
; | ||
[doc] = await Model.aggregate(aggregate, options); | ||
} else { | ||
; | ||
options.projection = projection; | ||
@@ -38,0 +40,0 @@ doc = await Model.findOne(query, {}, options); |
@@ -165,2 +165,3 @@ import { Types } from 'mongoose'; | ||
} else { | ||
; | ||
(Array.isArray(field.relationTo) ? field.relationTo : [ | ||
@@ -167,0 +168,0 @@ field.relationTo |
@@ -313,5 +313,7 @@ import { Types } from 'mongoose'; | ||
if (Array.isArray(formattedValue)) { | ||
; | ||
[lng, lat, maxDistance, minDistance] = formattedValue; | ||
} | ||
if (typeof formattedValue === 'string') { | ||
; | ||
[lng, lat, maxDistance, minDistance] = createArrayFromCommaDelineated(formattedValue); | ||
@@ -318,0 +320,0 @@ } |
{ | ||
"name": "@payloadcms/db-mongodb", | ||
"version": "3.2.3-canary.2d2e7d5", | ||
"version": "3.2.3-canary.3e78927", | ||
"description": "The officially supported MongoDB database adapter for Payload", | ||
@@ -52,6 +52,6 @@ "homepage": "https://payloadcms.com", | ||
"@payloadcms/eslint-config": "3.0.0", | ||
"payload": "3.2.3-canary.2d2e7d5" | ||
"payload": "3.2.3-canary.3e78927" | ||
}, | ||
"peerDependencies": { | ||
"payload": "3.2.3-canary.2d2e7d5" | ||
"payload": "3.2.3-canary.3e78927" | ||
}, | ||
@@ -58,0 +58,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
476606
4778