mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-07 22:49:26 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
ce4ca35fd9
@ -187,7 +187,7 @@ export function WorkflowTasks() {
|
|||||||
const params = useActionParams(status);
|
const params = useActionParams(status);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setTitle?.(`${lang('Workflow todo')}${title ? `: ${compile(title)}` : ''}`);
|
setTitle?.(`${lang('Workflow todos')}${title ? `: ${compile(title)}` : ''}`);
|
||||||
}, [taskType, status, setTitle, title, compile]);
|
}, [taskType, status, setTitle, title, compile]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
@ -774,6 +774,7 @@ export default class PluginWorkflowServer extends Plugin {
|
|||||||
(await repository.countAll({
|
(await repository.countAll({
|
||||||
where: {
|
where: {
|
||||||
userId: task.userId,
|
userId: task.userId,
|
||||||
|
workflowId: { [Op.ne]: null },
|
||||||
},
|
},
|
||||||
transaction,
|
transaction,
|
||||||
})) || [];
|
})) || [];
|
||||||
|
@ -18,6 +18,7 @@ export async function countMine(context: Context, next) {
|
|||||||
(await repository.countAll({
|
(await repository.countAll({
|
||||||
where: {
|
where: {
|
||||||
userId: context.state.currentUser.id,
|
userId: context.state.currentUser.id,
|
||||||
|
workflowId: { [Op.ne]: null },
|
||||||
},
|
},
|
||||||
})) || [];
|
})) || [];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user