@steedos-labs/plugin-workflow 3.0.0-beta.19 → 3.0.0-beta.20
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.
|
@@ -290,6 +290,7 @@ async function objectWorkflow(spaceId, flowId, objectName, doc) {
|
|
|
290
290
|
if (oldDoc) {
|
|
291
291
|
return objectWorkflowsCollection.updateOne({ _id: oldDoc._id }, { $set: docData });
|
|
292
292
|
} else {
|
|
293
|
+
docData._id = _makeNewID();
|
|
293
294
|
return objectWorkflowsCollection.insertOne(docData);
|
|
294
295
|
}
|
|
295
296
|
}
|
|
@@ -180,6 +180,9 @@ router.post('/am/forms', async function (req, res) {
|
|
|
180
180
|
config.type = config.data_type
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
+
if(config.type === 'autonumber'){
|
|
184
|
+
config.type = "text"
|
|
185
|
+
}
|
|
183
186
|
return {
|
|
184
187
|
type: `sfield-${lodash.toLower(lodash.camelCase(field.steedos_field.type))}`,
|
|
185
188
|
config: config
|