Skip to content
Snippets Groups Projects
Commit 0a8b3d05 authored by Daniel Gerdes's avatar Daniel Gerdes
Browse files

Agent not overwritable

parent 2a8141b7
No related branches found
No related tags found
No related merge requests found
......@@ -124,11 +124,11 @@ export class TelegramService {
));
if((await this.prismaService.agent.count({
where: { id: match[1] },
where: { id: match[1], uid: "" },
})) == 0)
return void (await this.telegram.sendMessage(
msg.chat.id,
'AgentId not found!',
'AgentId not found or already taken!',
));
const agent = await this.prismaService.agent.update({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment