chore: consistent function signatures

This commit is contained in:
Cory Dransfeldt 2024-07-10 13:09:28 -07:00
parent 816a072d65
commit 31eee646ba
No known key found for this signature in database
6 changed files with 23 additions and 7 deletions

View file

@ -6,7 +6,7 @@ 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 () {
const fetchAlbumReleases = async () => {
const today = DateTime.utc().toISO()
const { data, error } = await supabase
.from('albums')
@ -39,3 +39,7 @@ export default async function () {
}
)).sort((a, b) => a.timestamp - b.timestamp)
}
export default async function () {
return await fetchAlbumReleases()
}