@7365admin1/core 3.48.1-staging.208 → 3.48.1-staging.209
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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -61151,7 +61151,7 @@ async function requireOwnUnit(req, site, unitId) {
|
|
|
61151
61151
|
const db2 = import_node_server_utils190.useAtlas.getDb();
|
|
61152
61152
|
if (!db2)
|
|
61153
61153
|
throw new Error("Unable to connect to server.");
|
|
61154
|
-
const own = await db2.collection("people").findOne({
|
|
61154
|
+
const own = await db2.collection("site.people").findOne({
|
|
61155
61155
|
user: new import_mongodb119.ObjectId(actor.id),
|
|
61156
61156
|
unit: new import_mongodb119.ObjectId(unit),
|
|
61157
61157
|
site: new import_mongodb119.ObjectId(siteId),
|