Fix the spelling

This commit is contained in:
Michael 2022-06-06 21:52:47 +00:00
parent 19772f29f3
commit 56e88d2c4c

View file

@ -61,7 +61,7 @@ class Markers extends BaseApi
$fields = ['last_read_id' => $last_read_id, 'version' => $version, 'updated_at' => DateTimeFormat::utcNow()];
DBA::update('application-marker', $fields, $condition, true);
System::jsonExit($this->fethTimelines($application['id'], $uid));
System::jsonExit($this->fetchTimelines($application['id'], $uid));
}
/**
@ -73,10 +73,10 @@ class Markers extends BaseApi
$uid = self::getCurrentUserID();
$application = self::getCurrentApplication();
System::jsonExit($this->fethTimelines($application['id'], $uid));
System::jsonExit($this->fetchTimelines($application['id'], $uid));
}
private function fethTimelines(int $application_id, int $uid)
private function fetchTimelines(int $application_id, int $uid)
{
$values = [];
$markers = DBA::select('application-marker', [], ['application-id' => $application_id, 'uid' => $uid]);