1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-07-22 17:35:52 +00:00

rename saveAll

This commit is contained in:
Ner'zhul 2014-09-15 13:22:04 +02:00
parent 6a851b5ba6
commit c85967ca75

View File

@ -47,9 +47,13 @@ class SmsController extends Controller {
return new JSONResponse(array("status" => false, "msg" => $this->errorMsg));
}
$this->smsMapper->saveAll($this->userId, $smsDatas);
$this->smsMapper->writeToDB($this->userId, $smsDatas);
return new JSONResponse(array("status" => true, "msg" => "OK"));
}
/**
* @NoAdminRequired
*/
private function checkPushStructure($smsCount, $smsDatas) {
if ($smsCount != count($smsDatas)) {