Merge dev to main #1

Open
kibin wants to merge 33 commits from dev into main
Showing only changes of commit 1a0b4916d0 - Show all commits

View File

@@ -103,6 +103,14 @@ export class TicketService {
throw new NotFoundException('Ticket not found');
}
// When saving location, also propagate to the client record
if (dto.latitude !== undefined && dto.longitude !== undefined && existing.clientId) {
await this.prisma.client.update({
where: { id: existing.clientId },
data: { latitude: dto.latitude, longitude: dto.longitude },
});
}
return this.prisma.ticket.update({
where: { id },
data: {