agrs-sequelize-sdk 1.0.8 → 1.0.9
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/models/Folders.js +2 -0
- package/package.json +1 -1
package/models/Folders.js
CHANGED
|
@@ -35,6 +35,8 @@ module.exports = (sequelize, DataTypes) => {
|
|
|
35
35
|
// Function to count files and subfolders for each parent folder in ParentFolders array
|
|
36
36
|
Folders.countFilesAndSubfolders = async function (parentFolderIds) {
|
|
37
37
|
try {
|
|
38
|
+
const { Files } = sequelize.models; // Move the reference inside the function
|
|
39
|
+
|
|
38
40
|
// Loop through each parent folder ID
|
|
39
41
|
for (const parentFolderId of parentFolderIds) {
|
|
40
42
|
// Find the parent folder by ID
|