chore: workflow trigger type can change now (#1200)

Reviewed-on: daoyoucloud/tachybase#1200
This commit is contained in:
sealday 2024-06-18 11:51:43 +08:00
parent 3c23d87c95
commit a8191ba6c5
2 changed files with 2 additions and 1 deletions

View File

@ -443,6 +443,7 @@ export const workflowSchema: ISchema = {
title: '{{ t("Edit") }}',
properties: {
title: workflowFieldset.title,
type: workflowFieldset.type,
enabled: workflowFieldset.enabled,
sync: workflowFieldset.sync,
description: workflowFieldset.description,

View File

@ -8,7 +8,7 @@ export async function update(context: Context, next) {
const repository = utils.getRepositoryFromParams(context) as Repository;
const { filterByTk, values } = context.action.params;
context.action.mergeParams({
whitelist: ['title', 'description', 'enabled', 'triggerTitle', 'config', 'options'],
whitelist: ['title', 'description', 'enabled', 'triggerTitle', 'config', 'options', 'type'],
});
// only enable/disable
if (Object.keys(values).includes('config')) {