fix(plugin-workflow): fix legacy tasks count after workflow deleted (#6493)

* fix(plugin-workflow): fix legacy tasks count after workflow deleted

* fix(plugin-workflow): fix locale
This commit is contained in:
Junyi 2025-03-18 17:07:53 +08:00 committed by GitHub
parent fa0c378466
commit 21857c4db5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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 },
},
})) || [];