Merge branch 'main' into next

This commit is contained in:
nocobase[bot] 2025-03-18 09:08:17 +00:00
commit ce4ca35fd9
3 changed files with 3 additions and 1 deletions

View File

@ -187,7 +187,7 @@ export function WorkflowTasks() {
const params = useActionParams(status);
useEffect(() => {
setTitle?.(`${lang('Workflow todo')}${title ? `: ${compile(title)}` : ''}`);
setTitle?.(`${lang('Workflow todos')}${title ? `: ${compile(title)}` : ''}`);
}, [taskType, status, setTitle, title, compile]);
useEffect(() => {

View File

@ -774,6 +774,7 @@ export default class PluginWorkflowServer extends Plugin {
(await repository.countAll({
where: {
userId: task.userId,
workflowId: { [Op.ne]: null },
},
transaction,
})) || [];

View File

@ -18,6 +18,7 @@ export async function countMine(context: Context, next) {
(await repository.countAll({
where: {
userId: context.state.currentUser.id,
workflowId: { [Op.ne]: null },
},
})) || [];