fixed worker name in mail body
This commit is contained in:
parent
627bc5b47e
commit
6f3912b6a2
@ -31,6 +31,7 @@ if (empty($aWorkers)) {
|
||||
$aData = $aWorker;
|
||||
$aData['username'] = $user->getUserName($aWorker['account_id']);
|
||||
$aData['subject'] = 'IDLE Worker : ' . $aWorker['username'];
|
||||
$aData['worker'] = $aWorker['username'];
|
||||
$aData['email'] = $user->getUserEmail($aData['username']);
|
||||
if (!$notification->sendNotification($aWorker['account_id'], 'idle_worker', $aData))
|
||||
verbose($notification->getError() . "\n");
|
||||
|
||||
@ -1,7 +1,9 @@
|
||||
<html>
|
||||
<body>
|
||||
<p>One of your workers is currently IDLE: {$DATA.username}</p>
|
||||
<p>One of your workers is currently IDLE: {$DATA.worker}</p>
|
||||
<p>We have not received any shares for this worker in the past 10 minutes.</p>
|
||||
<p>Since monitoring is enabled for this worker, this notification was sent.</p>
|
||||
<br />
|
||||
<p>Please check your workers!</p>
|
||||
<br/>
|
||||
<br/>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user