Skip to content

Commit

Permalink
Merge pull request #260 from CodeForPhilly/develop
Browse files Browse the repository at this point in the history
Release: v3.2.1
  • Loading branch information
themightychris authored Oct 16, 2022
2 parents 444cab8 + 5b0a13f commit ef8c899
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .holo/sources/mueller.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[holosource]
url = "https://github.com/JarvusInnovations/emergence-mueller.git"
ref = "refs/heads/master"
ref = "refs/tags/v1.0.1"
19 changes: 19 additions & 0 deletions php-config/Emergence/Mueller/Investigator.config.d/laddr.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,25 @@
},
];

Investigator::$tests['has-checkin'] = [
'points' => 1000,
'function' => function (IUser $User) {
static $checkinMemberIds;

if ($checkinMemberIds === null) {
$checkinMemberIds = array_map(
'intval',
DB::allValues(
'MemberID',
'SELECT DISTINCT MemberID FROM `member_checkins`'
)
);
}

return in_array(strtolower($User->ID), $checkinMemberIds);
},
];

if (SlackAPI::isAvailable()) {
Investigator::$tests['has-slack-account'] = [
'points' => 1000,
Expand Down

0 comments on commit ef8c899

Please sign in to comment.