Skip to content

Commit 8e376e0

Browse files
committed
linting
1 parent f266bfd commit 8e376e0

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

db/migrate/20250530102741_create_workflow_stats.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
# frozen_string_literal: true
3+
# rubocop:disable Discourse/NoAddReferenceOrAliasesActiveRecordMigration
34
class CreateWorkflowStats < ActiveRecord::Migration[7.2]
45
def change
56
create_table :workflow_stats do |t|

lib/discourse_workflow/stats.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
module DiscourseWorkflow
23
class Stats
34

@@ -11,9 +12,9 @@ def calculate_daily_stats
1112
Workflow.all.each do |workflow|
1213
workflow.workflow_state.each do |state|
1314
stat = ::DiscourseWorkflow::WorkflowStat.find_or_initialize_by(
14-
cob_date: current_date,
15-
workflow_id: workflow.id,
16-
workflow_step_id: state.workflow_step_id
15+
cob_date: current_date,
16+
workflow_id: workflow.id,
17+
workflow_step_id: state.workflow_step_id
1718
)
1819
stat.count ||= 0
1920
stat.count += 1

0 commit comments

Comments
 (0)