mirror of
https://github.com/nocobase/nocobase.git
synced 2026-09-24 16:02:20 +08:00
Merge branch 'main' into next
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user