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 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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agrs-sequelize-sdk",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "start": "node index.js",