mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 19:55:16 +00:00
oop
This commit is contained in:
parent
2816314df9
commit
de363bc8d2
4 changed files with 6 additions and 3 deletions
|
|
@ -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|
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue