fix: resolve redeclared variable in ticket_service.go
This commit is contained in:
parent
68801ba3ca
commit
70aa9c8389
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ func (s *TicketService) AddMessage(ctx context.Context, ticketID string, userID
|
||||||
return nil, errors.New("ticket not found")
|
return nil, errors.New("ticket not found")
|
||||||
}
|
}
|
||||||
|
|
||||||
query := `
|
query = `
|
||||||
INSERT INTO ticket_messages (ticket_id, user_id, message, created_at)
|
INSERT INTO ticket_messages (ticket_id, user_id, message, created_at)
|
||||||
VALUES ($1, $2, $3, NOW())
|
VALUES ($1, $2, $3, NOW())
|
||||||
RETURNING id, ticket_id, user_id, message, created_at
|
RETURNING id, ticket_id, user_id, message, created_at
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue