Skip to content

Commit ef8c899

Browse files
Merge pull request #260 from CodeForPhilly/develop
Release: v3.2.1
2 parents 444cab8 + 5b0a13f commit ef8c899

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.holo/sources/mueller.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[holosource]
22
url = "https://github.com/JarvusInnovations/emergence-mueller.git"
3-
ref = "refs/heads/master"
3+
ref = "refs/tags/v1.0.1"

php-config/Emergence/Mueller/Investigator.config.d/laddr.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,25 @@
5151
},
5252
];
5353

54+
Investigator::$tests['has-checkin'] = [
55+
'points' => 1000,
56+
'function' => function (IUser $User) {
57+
static $checkinMemberIds;
58+
59+
if ($checkinMemberIds === null) {
60+
$checkinMemberIds = array_map(
61+
'intval',
62+
DB::allValues(
63+
'MemberID',
64+
'SELECT DISTINCT MemberID FROM `member_checkins`'
65+
)
66+
);
67+
}
68+
69+
return in_array(strtolower($User->ID), $checkinMemberIds);
70+
},
71+
];
72+
5473
if (SlackAPI::isAvailable()) {
5574
Investigator::$tests['has-slack-account'] = [
5675
'points' => 1000,

0 commit comments

Comments
 (0)