generated from VLADIMIR/template
update
This commit is contained in:
@@ -117,6 +117,13 @@ func (r *TeamsRepo) SetParticipationToken(ctx context.Context, id int, token str
|
||||
return err
|
||||
}
|
||||
|
||||
func (r *TeamsRepo) ConfirmParticipationByFirstAction(ctx context.Context, teamID int) error {
|
||||
_, err := r.pool.Exec(ctx, `UPDATE teams SET participation_status='confirmed',
|
||||
participation_source='first_action', participation_answered_at=NOW()
|
||||
WHERE id=$1 AND participation_status='pending'`, teamID)
|
||||
return err
|
||||
}
|
||||
|
||||
func (r *TeamsRepo) FinishParticipationEmail(ctx context.Context, id, attempt int, sendErr error) error {
|
||||
message := ""
|
||||
if sendErr != nil {
|
||||
|
||||
Reference in New Issue
Block a user