fiberx-backend-toolkit 1.0.3 → 1.0.4
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.
|
@@ -66,7 +66,7 @@ class MigrationRunnerScript {
|
|
|
66
66
|
async getAppliedMigrations() {
|
|
67
67
|
const sequelize = await this.getSequelizeInstance();
|
|
68
68
|
const queryInterface = sequelize.getQueryInterface();
|
|
69
|
-
const table_name = queryInterface
|
|
69
|
+
const table_name = queryInterface?.quoteTable(constants_1.SEQUELIZE_META_TABLE_NAME) ?? constants_1.SEQUELIZE_META_TABLE_NAME;
|
|
70
70
|
const column_name = queryInterface.quoteIdentifier("name");
|
|
71
71
|
const results = await sequelize.query(`SELECT ${column_name} FROM ${table_name};`, { type: sequelize_1.QueryTypes.SELECT });
|
|
72
72
|
return results.map((row) => row.name);
|
|
@@ -62,7 +62,7 @@ class SeederRunnerScript {
|
|
|
62
62
|
async getAppliedSeeders() {
|
|
63
63
|
const sequelize = await this.getSequelizeInstance();
|
|
64
64
|
const queryInterface = sequelize.getQueryInterface();
|
|
65
|
-
const table_name = queryInterface
|
|
65
|
+
const table_name = queryInterface?.quoteTable(constants_1.SEQUELIZE_SEEDER_META_TABLE_NAME) ?? constants_1.SEQUELIZE_SEEDER_META_TABLE_NAME;
|
|
66
66
|
const column_name = queryInterface.quoteIdentifier("name");
|
|
67
67
|
const results = await sequelize.query(`SELECT ${column_name} FROM ${table_name};`, { type: sequelize_1.QueryTypes.SELECT });
|
|
68
68
|
return results.map((row) => row.name);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fiberx-backend-toolkit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "A TypeScript backend toolkit providing shared domain logic, infrastructure helpers, and utilities for FiberX server-side applications and services.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./dist/index.js",
|