Skip to content

Commit eaa7f21

Browse files
authored
fix: update aggregateByColumn to use beneficiary_id (#553)
1 parent 441a664 commit eaa7f21

5 files changed

Lines changed: 17 additions & 2 deletions

File tree

app/Reports/Queries/Activity/A01.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static function dateColumn(string $type): string
3232

3333
public static function aggregateByColumn(): string
3434
{
35-
return 'beneficiaries.id';
35+
return 'beneficiary_id';
3636
}
3737

3838
public static function includeLatestBeforeRange(): bool

app/Reports/Queries/Activity/A02.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static function dateColumn(string $type): string
3232

3333
public static function aggregateByColumn(): string
3434
{
35-
return 'beneficiaries.id';
35+
return 'beneficiary_id';
3636
}
3737

3838
public static function includeLatestBeforeRange(): bool

app/Reports/Queries/Activity/A03.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,9 @@ public static function dateColumn(string $type): string
2929
{
3030
return 'beneficiaries.created_at';
3131
}
32+
33+
public static function aggregateByColumn(): string
34+
{
35+
return 'beneficiary_id';
36+
}
3237
}

app/Reports/Queries/Activity/A04.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,9 @@ public static function dateColumn(string $type): string
2929
{
3030
return 'beneficiaries.created_at';
3131
}
32+
33+
public static function aggregateByColumn(): string
34+
{
35+
return 'beneficiary_id';
36+
}
3237
}

app/Reports/Queries/Activity/A05.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,9 @@ public static function dateColumn(string $type): string
2929
{
3030
return 'beneficiaries.created_at';
3131
}
32+
33+
public static function aggregateByColumn(): string
34+
{
35+
return 'beneficiary_id';
36+
}
3237
}

0 commit comments

Comments
 (0)