Skip to content
Snippets Groups Projects
Verified Commit fe6b5da4 authored by Damien's avatar Damien
Browse files

FEAT #13678 TIME 0:05 Fix history user_id

parent 0d4418e4
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,7 @@ abstract class HistoryModelAbstract ...@@ -65,7 +65,7 @@ abstract class HistoryModelAbstract
public static function getByUserId(array $args) public static function getByUserId(array $args)
{ {
ValidatorModel::notEmpty($args, ['userId']); ValidatorModel::notEmpty($args, ['userId']);
ValidatorModel::stringType($args, ['userId']); ValidatorModel::intVal($args, ['userId']);
$aHistories = DatabaseModel::select([ $aHistories = DatabaseModel::select([
'select' => empty($args['select']) ? ['*'] : $args['select'], 'select' => empty($args['select']) ? ['*'] : $args['select'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment