diff --git a/package-lock.json b/package-lock.json index 6e35eec2..772e71db 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coryd.dev", - "version": "20.0.5", + "version": "20.1.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coryd.dev", - "version": "20.0.5", + "version": "20.1.5", "license": "MIT", "dependencies": { "@cdransf/api-text": "^1.4.0", diff --git a/package.json b/package.json index eefd4174..be25097a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "20.0.5", + "version": "20.1.5", "description": "The source for my personal site. Built using 11ty.", "type": "module", "scripts": { diff --git a/src/_data/albumReleases.js b/src/_data/albumReleases.js index 94c2fa3b..9f068a67 100644 --- a/src/_data/albumReleases.js +++ b/src/_data/albumReleases.js @@ -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() +} diff --git a/src/_data/blogroll.js b/src/_data/blogroll.js index 29c23048..2d129c2a 100644 --- a/src/_data/blogroll.js +++ b/src/_data/blogroll.js @@ -4,7 +4,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 fetchGenresWithArtists() { +const fetchBlogroll = async () => { const { data, error } = await supabase .from('authors') .select('*') @@ -17,4 +17,8 @@ export default async function fetchGenresWithArtists() { } return data.sort((a, b) => a['name'].toLowerCase().localeCompare(b['name'].toLowerCase())) +} + +export default async function () { + return await fetchBlogroll() } \ No newline at end of file diff --git a/src/_data/genres.js b/src/_data/genres.js index cdabfba5..31247a76 100644 --- a/src/_data/genres.js +++ b/src/_data/genres.js @@ -5,7 +5,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 fetchGenresWithArtists() { +const fetchGenresWithArtists = async () => { const { data, error } = await supabase .from('genres') .select(` @@ -37,4 +37,8 @@ export default async function fetchGenresWithArtists() { }) return data +} + +export default async function () { + return await fetchGenresWithArtists() } \ No newline at end of file diff --git a/src/_data/globals.js b/src/_data/globals.js index 30e3c89a..a9afb23c 100644 --- a/src/_data/globals.js +++ b/src/_data/globals.js @@ -4,7 +4,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 fetchGlobals = async () => { const { data, error } = await supabase .from('globals') .select(` @@ -49,4 +49,8 @@ export default async function () { }) return globalData +} + +export default async function () { + return await fetchGlobals() } \ No newline at end of file