Merge branch 'main' into next

This commit is contained in:
nocobase[bot]
2025-08-24 11:56:16 +00:00
2 changed files with 5 additions and 2 deletions
@@ -49,7 +49,6 @@ export class NotificationManager implements NotificationManager {
async send(params: SendOptions) {
this.plugin.logger.info('receive sending message request', params);
console.log('receive sending message request', params);
const message = compile(params.message ?? {}, params.data ?? {});
const messageData = { ...(params.receivers ? { receivers: params.receivers } : {}), ...message };
const logData: any = {
@@ -240,10 +240,14 @@ function useOptions(scope, opts) {
};
}
export function useWorkflowVariableOptions(options: UseVariableOptions = {}) {
export function useWorkflowVariableOptions(
options: UseVariableOptions = {},
preset: VariableOption[] = [],
): VariableOption[] {
const fieldNames = Object.assign({}, defaultFieldNames, options.fieldNames ?? {});
const opts = Object.assign(options, { fieldNames });
const result = [
...preset,
useOptions(scopeOptions, opts),
useOptions(nodesOptions, opts),
useOptions(triggerOptions, opts),