sequelize-game-bank 1.2.0 → 2.0.0
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/index.js +5 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -9,12 +9,12 @@ const sequelize = require(path.join(__dirname, 'database', 'config', 'init-db'))
|
|
|
9
9
|
const User = require(path.join(__dirname, 'database', 'models', 'User'));
|
|
10
10
|
const { writeTemplatesIfNotExist } = require(path.join(__dirname, 'database', 'services', 'bot', 'write'));
|
|
11
11
|
const registerRoutes = require(path.join(__dirname, 'server', 'server'));
|
|
12
|
-
const Transaction = require(path.join(__dirname, 'database', 'models', 'Transaction'));
|
|
13
|
-
const app = express();
|
|
12
|
+
const Transaction = require(path.join(__dirname, 'database', 'models', 'Transaction'));
|
|
14
13
|
const { verifySession } = require(path.join(__dirname, 'server', 'server'));
|
|
15
|
-
|
|
16
|
-
app
|
|
17
|
-
|
|
14
|
+
|
|
15
|
+
async function Bank(app) {
|
|
16
|
+
app.use(express.json());
|
|
17
|
+
app.use(cookieParser());
|
|
18
18
|
try {
|
|
19
19
|
await sequelize.sync();
|
|
20
20
|
console.log(logger.ServerBankInfo("База данных синхронизирована."));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sequelize-game-bank",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "A Sequelize-based gaming economy and banking system featuring user profiles, credits, admin management, and detailed transaction history.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "commonjs",
|