mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-29 04:14:30 +00:00
refactor(api): enforce layered architecture by moving db queries to core services
This commit is contained in:
@@ -300,6 +300,12 @@ export class AgentService {
|
||||
})
|
||||
}
|
||||
|
||||
async getAgent(params: { agentId: string }) {
|
||||
return this.prismaClient.agent.findUnique({
|
||||
where: { id: params.agentId },
|
||||
})
|
||||
}
|
||||
|
||||
async deleteAgent(params: DeleteAgentParams) {
|
||||
const { agentId } = params
|
||||
|
||||
|
||||
Reference in New Issue
Block a user