Add Ed25519 signature verification to auto-updater (v1.0.4)
This commit is contained in:
@@ -55,7 +55,7 @@ export async function fetchProjects(token: string, dbId: string): Promise<Notion
|
||||
}),
|
||||
});
|
||||
|
||||
if (!resp.ok) throw new Error(`Notion error ${resp.status}: ${await resp.text()}`);
|
||||
if (!resp.ok) throw new Error(`Notion error ${resp.status}`);
|
||||
|
||||
const data = (await resp.json()) as { results: unknown[] };
|
||||
return data.results.map((page: any) => {
|
||||
@@ -74,7 +74,7 @@ export async function startTimer(
|
||||
timingDbId: string,
|
||||
projectId: string,
|
||||
projectName: string,
|
||||
userId: string,
|
||||
userId: string
|
||||
): Promise<string> {
|
||||
const now = new Date().toISOString();
|
||||
const date = new Date().toLocaleDateString("en-GB");
|
||||
@@ -95,7 +95,7 @@ export async function startTimer(
|
||||
}),
|
||||
});
|
||||
|
||||
if (!resp.ok) throw new Error(`Failed to start timer: ${await resp.text()}`);
|
||||
if (!resp.ok) throw new Error(`Failed to start timer: ${resp.status}`);
|
||||
|
||||
const data = (await resp.json()) as { id: string };
|
||||
return data.id;
|
||||
@@ -115,5 +115,5 @@ export async function stopTimer(token: string, entryId: string): Promise<void> {
|
||||
}),
|
||||
});
|
||||
|
||||
if (!resp.ok) throw new Error(`Failed to stop timer: ${await resp.text()}`);
|
||||
if (!resp.ok) throw new Error(`Failed to stop timer: ${resp.status}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user