Refactor task audits, integrate OpenClaw, and fix timezone handling
This commit is contained in:
@@ -103,7 +103,8 @@ function App() {
|
||||
|
||||
React.useEffect(() => {
|
||||
window.dbUsers = dbUsers;
|
||||
}, [dbUsers]);
|
||||
window.workspace = workspace;
|
||||
}, [dbUsers, workspace]);
|
||||
|
||||
React.useEffect(() => {
|
||||
const handleKeyDown = (e) => {
|
||||
@@ -172,15 +173,10 @@ function App() {
|
||||
|
||||
const addTask = async ({ title, description, assignee, priority }) => {
|
||||
try {
|
||||
const t = await api.createTask({
|
||||
await api.createTask({
|
||||
title, description, assignee_id: assignee, priority,
|
||||
added_by: meId, source: 'manual', status: 'open', tags: []
|
||||
});
|
||||
await api.addAudit({
|
||||
actor: meId, action: 'task_created',
|
||||
summary: 'Created task "' + title + '" for ' + (merge(assignee)||{}).name,
|
||||
target: t.id
|
||||
});
|
||||
setAdding(null);
|
||||
} catch(e) {
|
||||
console.error(e);
|
||||
|
||||
Reference in New Issue
Block a user