Skip to content

Commit 39bd5ff

Browse files
committed
Get tasks by client #24
1 parent ec0a275 commit 39bd5ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/InvoiceNinja/Models/AbstractModel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ public static function find($id)
3737

3838
return static::hydrate($data);
3939
}
40-
40+
4141
/**
4242
* @return \InvoiceNinja\Models\AbstractModel
4343
*/
44-
public function findByClientID($id)
44+
public static function findByClientId($id)
4545
{
46-
$url = sprintf('%s/?client_id=%s', static::getRoute(), $id);
46+
$url = sprintf('%s?client_id=%s', static::getRoute(), $id);
4747
$data = static::sendRequest($url);
4848

4949
$result = [];

0 commit comments

Comments
 (0)