File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
php-config/Emergence/Mueller/Investigator.config.d Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 11[holosource ]
22url = " https://github.com/JarvusInnovations/emergence-mueller.git"
3- ref = " refs/heads/master "
3+ ref = " refs/tags/v1.0.1 "
Original file line number Diff line number Diff line change 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+
5473if (SlackAPI::isAvailable ()) {
5574 Investigator::$ tests ['has-slack-account ' ] = [
5675 'points ' => 1000 ,
You can’t perform that action at this time.
0 commit comments