mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
Revert "feat: add-healthcheck"
This commit is contained in:
@@ -6,7 +6,6 @@ import {eq, and, ne, count} from "drizzle-orm";
|
||||
import {db} from "@/db";
|
||||
import * as drizzleDb from "@/db";
|
||||
import {slugify} from "@/utils/slugify";
|
||||
import {getHealthLast12hLogs} from "@/db/services/healthcheck";
|
||||
|
||||
const verifySlugUniqueness = async (slug: string, agentId?: string) => {
|
||||
const conditions = agentId ? and(eq(drizzleDb.schemas.agent.slug, slug), ne(drizzleDb.schemas.agent.id, agentId)) : eq(drizzleDb.schemas.agent.slug, slug);
|
||||
@@ -55,10 +54,7 @@ export const getAgentAction = userAction.schema(z.string()).action(async ({parse
|
||||
databases: true
|
||||
}
|
||||
});
|
||||
|
||||
return {
|
||||
data: agent,
|
||||
health: agent ? await getHealthLast12hLogs({ id: agent.id }) : []
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user