This commit is contained in:
Mahad Kalam 2026-02-23 22:25:09 +00:00
parent 2816314df9
commit de363bc8d2
4 changed files with 6 additions and 3 deletions

View file

@ -1,7 +1,7 @@
class UpdateAirtableUserDataJob < ApplicationJob
queue_as :latency_5m
Table = Norairrecord.table(ENV["cccccbceufnn"], "app6VcLJoYFbDdGWK", "tblnzmotZ55MFBfV4")
Table = Norairrecord.table(ENV["LOOPS_AIRTABLE_PAT"], "app6VcLJoYFbDdGWK", "tblnzmotZ55MFBfV4")
def perform
users_with_heartbeats.includes(:email_addresses).find_in_batches(batch_size: 100) do |batch|

View file

@ -11,7 +11,7 @@ class WeeklySummaryMailer < ApplicationMailer
@starts_at_local = @starts_at.in_time_zone(@timezone)
@ends_at_local = @ends_at.in_time_zone(@timezone)
@subject_period_label = "#{@starts_at_local.strftime("%b %-d")} - #{@ends_at_local.strftime("%b %-d, %Y")}"
@period_label = "#{@subject_period_label}"
@period_label = @subject_period_label
coding_heartbeats = @user.heartbeats
.coding_only

View file

@ -6,3 +6,6 @@
</p>
<%= render "shared/mailer/button", url: @download_url, label: "Download #{@filename}" %>
<p style="font-size: 14px; line-height: 20px; color: #64748b; margin: 24px 0 0 0;">
This link will stop working after 7 days.
</p>

View file

@ -115,7 +115,7 @@ Rails.application.configure do
class: "HeartbeatImportSourceSchedulerJob"
},
weekly_summary_email: {
cron: "* * * * *",
cron: "30 17 * * 5",
class: "WeeklySummaryEmailJob",
description: "Sends weekly coding summaries on Fridays at 17:30 GMT."
},