zet-lib 1.2.66 → 1.2.67
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/zGeneratorRouter.js +3 -0
- package/package.json +1 -1
package/lib/zGeneratorRouter.js
CHANGED
|
@@ -1150,6 +1150,9 @@ router.post('/import', async (req, res) => {
|
|
|
1150
1150
|
data.company_id = 1
|
|
1151
1151
|
data.created_by = res.locals.userId || 1
|
|
1152
1152
|
data.updated_by = res.locals.userId || 1
|
|
1153
|
+
data.created_at = Util.now()
|
|
1154
|
+
data.updated_at = Util.now()
|
|
1155
|
+
delete data.approval_history
|
|
1153
1156
|
const results = await connection.results({
|
|
1154
1157
|
table: 'zfields',
|
|
1155
1158
|
where: {
|