This repository was archived by the owner on Feb 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ public function save()
103
103
continue ;
104
104
}
105
105
106
- $ this ->createRecord ($ statistic );
106
+ $ this ->createRecord ($ statistic, $ appId );
107
107
108
108
$ currentConnectionCount = $ this ->channelManager ->getConnectionCount ($ appId );
109
109
@@ -140,9 +140,10 @@ public function getStatistics(): array
140
140
* Create a new record using the Statistic Driver.
141
141
*
142
142
* @param Statistic $statistic
143
+ * @param mixed $appId
143
144
* @return void
144
145
*/
145
- public function createRecord (Statistic $ statistic )
146
+ public function createRecord (Statistic $ statistic, $ appId )
146
147
{
147
148
$ this ->driver ::create ($ statistic ->toArray ());
148
149
}
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ public function save()
122
122
continue ;
123
123
}
124
124
125
- $ this ->createRecord ($ statistic );
125
+ $ this ->createRecord ($ statistic, $ appId );
126
126
127
127
$ currentConnectionCount = $ this ->channelManager ->getConnectionCount ($ appId );
128
128
@@ -203,9 +203,10 @@ protected function lock()
203
203
* Create a new record using the Statistic Driver.
204
204
*
205
205
* @param array $statistic
206
+ * @param mixed $appId
206
207
* @return void
207
208
*/
208
- protected function createRecord (array $ statistic ): void
209
+ protected function createRecord (array $ statistic, $ appId ): void
209
210
{
210
211
$ this ->driver ::create ([
211
212
'app_id ' => $ appId ,
You can’t perform that action at this time.
0 commit comments