mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-09 01:18:18 +00:00
Luggage processing,, schedule times and tariff related updates
This commit is contained in:
@@ -210,4 +210,11 @@ export class AgentsService {
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
async deleteAgent(id: string) {
|
||||
const agent = await this.prisma.agent.findUnique({ where: { id } });
|
||||
if (!agent) throw new NotFoundException('Agent not found');
|
||||
await this.prisma.agent.delete({ where: { id } });
|
||||
return { deleted: true };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user