news-cms-module 1.1.0 → 1.1.1

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.
@@ -126,18 +126,9 @@ class NewsController {
126
126
  error: 'news tidak ditemukan'
127
127
  });
128
128
  }
129
-
130
- const appBaseUrl = config.baseUrl;
131
- const newsPrefix = config.newsPrefix;
132
- const adminPrefix = config.adminRoutePrefix;
133
-
134
- const fullApiUrl = `${appBaseUrl}${adminPrefix}/create`;
135
- const nextUrl = `${newsPrefix}${adminPrefix}/list`
136
129
 
137
130
  res.render(path.join(__dirname, '../views/admin/update_news.ejs'), {
138
- data: posts,
139
- apiBaseUrl: fullApiUrl,
140
- nextUrl
131
+ data: posts
141
132
  });
142
133
  } catch (error) {
143
134
  res.status(500).json({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "news-cms-module",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -16,7 +16,7 @@
16
16
  "express-session": "^1.18.2",
17
17
  "express-validator": "^7.3.1",
18
18
  "multer": "^2.0.2",
19
- "mysql2": "^3.15.1",
19
+ "mysql2": "^3.16.0",
20
20
  "path": "^0.12.7",
21
21
  "sequelize": "^6.37.7"
22
22
  }