feat(web): options to disable machine
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user