mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-27 18:17:44 +02:00
🐛 fix(mana-search): fix SearXNG docker config for local development
- Remove :ro flag from volume mounts (SearXNG needs write access) - Simplify limiter.toml to match current SearXNG schema - Disable link_token for API usage without browser
This commit is contained in:
parent
176aa052b9
commit
677eb823e3
23 changed files with 1950 additions and 183 deletions
|
|
@ -36,7 +36,12 @@ export class ClockService {
|
|||
|
||||
// ===== API Helper =====
|
||||
|
||||
private async apiCall<T>(endpoint: string, method: string = 'GET', token?: string, body?: unknown): Promise<T> {
|
||||
private async apiCall<T>(
|
||||
endpoint: string,
|
||||
method = 'GET',
|
||||
token?: string,
|
||||
body?: unknown
|
||||
): Promise<T> {
|
||||
const headers: Record<string, string> = {
|
||||
'Content-Type': 'application/json',
|
||||
};
|
||||
|
|
@ -56,7 +61,7 @@ export class ClockService {
|
|||
throw new Error(`Clock API error: ${response.status} - ${errorText}`);
|
||||
}
|
||||
|
||||
return response.json();
|
||||
return response.json() as Promise<T>;
|
||||
}
|
||||
|
||||
// ===== Health =====
|
||||
|
|
@ -167,7 +172,10 @@ export class ClockService {
|
|||
return finishedAt.toDateString() === today.toDateString();
|
||||
});
|
||||
|
||||
const totalMinutes = finishedToday.reduce((sum, t) => sum + Math.floor(t.durationSeconds / 60), 0);
|
||||
const totalMinutes = finishedToday.reduce(
|
||||
(sum, t) => sum + Math.floor(t.durationSeconds / 60),
|
||||
0
|
||||
);
|
||||
|
||||
return {
|
||||
totalMinutes,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue