feat(web): options to disable machine

This commit is contained in:
BennyKok
2023-12-21 13:39:36 +08:00
parent eda922a5e3
commit 61d3e2f65a
10 changed files with 744 additions and 55 deletions
+2 -11
View File
@@ -15,7 +15,7 @@ async function MachineListServer() {
return <div>No auth</div>;
}
const workflow = await db.query.machinesTable.findMany({
const machines = await db.query.machinesTable.findMany({
orderBy: desc(machinesTable.updated_at),
where: eq(machinesTable.user_id, userId),
});
@@ -23,16 +23,7 @@ async function MachineListServer() {
return (
<div className="w-full">
{/* <div>Machines</div> */}
<MachineList
data={workflow.map((x) => {
return {
id: x.id,
name: x.name,
date: x.updated_at,
endpoint: x.endpoint,
};
})}
/>
<MachineList data={machines} />
</div>
);
}