zet-lib 1.2.82 → 1.2.83

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/lib/zAppRouter.js CHANGED
@@ -1531,7 +1531,10 @@ router.post('/zdropzone', async (req, res) => {
1531
1531
  router.post('/zdropzone-remove', async (req, res) => {
1532
1532
  try {
1533
1533
  let userId = res.locals.userId
1534
- console.log(req.body)
1534
+ let dir = `${dirRoot}/public/zdropzone/${userId}`
1535
+ if (!fs.existsSync(dir)) {
1536
+ fs.mkdirSync(dir, { recursive: true })
1537
+ }
1535
1538
  let filename = `${dirRoot}/public/zdropzone/${userId}/${req.body.file}`
1536
1539
  if (Util.fileExist(filename)) {
1537
1540
  await fs.unlink(filename)
@@ -1545,6 +1548,10 @@ router.post('/zdropzone-remove', async (req, res) => {
1545
1548
  router.post('/zdropzone-attributes', async (req, res) => {
1546
1549
  try {
1547
1550
  let userId = res.locals.userId
1551
+ let dir = `${dirRoot}/public/zdropzone/${userId}`
1552
+ if (!fs.existsSync(dir)) {
1553
+ fs.mkdirSync(dir, { recursive: true })
1554
+ }
1548
1555
  let body = req.body
1549
1556
  let category = body.category
1550
1557
  let name = `dropzone__${userId}__${body.table}__${body.field}__${body.type}`
package/lib/zdataTable.js CHANGED
@@ -194,10 +194,8 @@ class dataTable {
194
194
  if (this.hasLevels) {
195
195
  //modal-body-approval
196
196
  let APPROVAL_LEVELS = myCache.get('APPROVAL_LEVELS')
197
- console.log(APPROVAL_LEVELS)
198
197
  let approvalButtonHtml = ``
199
198
  for (let item in this.level_approval) {
200
- console.log(item)
201
199
  let imageapproval = 'brand-bunpo'
202
200
  if (item == 22) {
203
201
  imageapproval = 'rubber-stamp-off'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zet-lib",
3
- "version": "1.2.82",
3
+ "version": "1.2.83",
4
4
  "description": "zet is a library that part of zet generator.",
5
5
  "engines": {
6
6
  "node": ">=18"