fix(scrape-events): updateScrapeResult fix

This commit is contained in:
Gergo Moricz 2024-08-07 14:17:50 +02:00
parent b5ec47fd96
commit 2e2e80d679

View File

@ -59,6 +59,12 @@ export class ScrapeEvents {
try {
const previousLog = (await supabase.from("scrape_events").select().eq("id", logId).single()).data as any;
if (!previousLog) {
Logger.warn("Previous log not found.");
return;
}
await supabase.from("scrape_events").update({
content: {
...previousLog.content,