This commit is contained in:
2025-08-09 23:09:01 +08:00
parent 1898376161
commit c9e4358bd8
10 changed files with 4582 additions and 17 deletions

12
starred/get-tasks.ts Normal file
View File

@@ -0,0 +1,12 @@
import { client } from './common';
import util from 'node:util';
const getTask = async () => {
const tasks = await client.tasks.getTasks();
console.log('Tasks:', tasks);
console.log(util.inspect(tasks, { depth: null }));
client.tasks.deleteTasks({
uids: tasks.results.map((task) => task.uid),
});
return tasks;
};
getTask();