mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 05:29:26 +08:00
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:
parent
fa0c378466
commit
21857c4db5
@ -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(() => {
|
||||
|
@ -774,6 +774,7 @@ export default class PluginWorkflowServer extends Plugin {
|
||||
(await repository.countAll({
|
||||
where: {
|
||||
userId: task.userId,
|
||||
workflowId: { [Op.ne]: null },
|
||||
},
|
||||
transaction,
|
||||
})) || [];
|
||||
|
@ -18,6 +18,7 @@ export async function countMine(context: Context, next) {
|
||||
(await repository.countAll({
|
||||
where: {
|
||||
userId: context.state.currentUser.id,
|
||||
workflowId: { [Op.ne]: null },
|
||||
},
|
||||
})) || [];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user