Style checklists

This commit is contained in:
Johannes Zellner
2025-03-22 11:59:27 +01:00
parent 64b730a22e
commit 1db275707b
3 changed files with 61 additions and 22 deletions
+11
View File
@@ -389,6 +389,17 @@ function create() {
if (result.status !== 200 && result.status !== 202) return [result];
return [null, result.body];
},
async ackChecklistItem(id, key, done) {
let result;
try {
result = await fetcher.put(`${API_ORIGIN}/api/v1/apps/${id}/checklist/${key}`, { done }, { access_token: accessToken });
} catch (e) {
return [e];
}
if (result.status !== 202) return [result];
return [null];
},
};
}