fix(plugin-workflow): fix revision with new properties (#3487)

This commit is contained in:
Junyi 2024-02-04 09:49:18 +08:00 committed by GitHub
parent f1a3c17522
commit dcd732db89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -81,7 +81,7 @@ export default class extends Trigger {
let payload = row; let payload = row;
if (trigger[1]) { if (trigger[1]) {
const paths = trigger[1].split('.'); const paths = trigger[1].split('.');
for await (const field of paths) { for (const field of paths) {
if (payload.get(field)) { if (payload.get(field)) {
payload = payload.get(field); payload = payload.get(field);
} else { } else {

View File

@ -73,7 +73,9 @@ export async function revision(context: Context, next) {
? { ? {
key: filter.key, key: filter.key,
title: origin.title, title: origin.title,
triggerTitle: origin.triggerTitle,
allExecuted: origin.allExecuted, allExecuted: origin.allExecuted,
sync: origin.sync,
} }
: values; : values;