Skip to content

Commit ff3506b

Browse files
committed
feat: add find risk by date
1 parent 747a5af commit ff3506b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Model/Risk.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,9 @@ public static function latestByClassAndUser(String $classId, String $userId)
4040
return parent::get("risks/classes/$classId/users/$userId?date=latest");
4141
}
4242

43+
public static function findByClassAndUserAndDate(String $classId, String $userId, String $date)
44+
{
45+
return parent::get("risks/classes/$classId/users/$userId?date=$date");
46+
}
4347

4448
}

0 commit comments

Comments
 (0)