chore: normalize formatting
This commit is contained in:
parent
01ed2ac3b3
commit
2f6cfbe7ae
61 changed files with 921 additions and 743 deletions
|
@ -1,20 +1,20 @@
|
|||
import { createClient } from '@supabase/supabase-js'
|
||||
import { createClient } from "@supabase/supabase-js";
|
||||
|
||||
const SUPABASE_URL = process.env.SUPABASE_URL
|
||||
const SUPABASE_KEY = process.env.SUPABASE_KEY
|
||||
const supabase = createClient(SUPABASE_URL, SUPABASE_KEY)
|
||||
const SUPABASE_URL = process.env.SUPABASE_URL;
|
||||
const SUPABASE_KEY = process.env.SUPABASE_KEY;
|
||||
const supabase = createClient(SUPABASE_URL, SUPABASE_KEY);
|
||||
|
||||
export default async function fetchSyndication() {
|
||||
const { data, error } = await supabase
|
||||
.from('optimized_syndication')
|
||||
.select('syndication')
|
||||
.from("optimized_syndication")
|
||||
.select("syndication");
|
||||
|
||||
if (error) {
|
||||
console.error('Error fetching search index data:', error)
|
||||
return []
|
||||
console.error("Error fetching search index data:", error);
|
||||
return [];
|
||||
}
|
||||
|
||||
const [{ syndication } = {}] = data
|
||||
const [{ syndication } = {}] = data;
|
||||
|
||||
return syndication?.filter(item => item['syndication'] !== null) || []
|
||||
}
|
||||
return syndication?.filter((item) => item["syndication"] !== null) || [];
|
||||
}
|
||||
|
|
Reference in a new issue