@kipicore/dbcore 1.1.38 → 1.1.39
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.
|
@@ -29,7 +29,7 @@ const sequelize = new sequelize_1.Sequelize(database, username, password, {
|
|
|
29
29
|
exports.sequelize = sequelize;
|
|
30
30
|
(async () => {
|
|
31
31
|
const files = (await promises_1.default.readdir(__dirname)).filter(file => {
|
|
32
|
-
return file.indexOf('.') !== 0 && file !== path_1.default.basename(__filename) &&
|
|
32
|
+
return file.indexOf('.') !== 0 && file !== path_1.default.basename(__filename) && file.slice(-3) === '.js';
|
|
33
33
|
});
|
|
34
34
|
for (const file of files) {
|
|
35
35
|
const modelPath = path_1.default.join(__dirname, file);
|
package/package.json
CHANGED