From 78e0507970f2e8d95eb1464ea5a09efd4c4d39e0 Mon Sep 17 00:00:00 2001 From: prototypa Date: Fri, 19 Aug 2022 03:40:26 -0400 Subject: [PATCH] Rename to getPosts from getAllPosts --- src/utils/{getAllPosts.js => getPosts.js} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename src/utils/{getAllPosts.js => getPosts.js} (93%) diff --git a/src/utils/getAllPosts.js b/src/utils/getPosts.js similarity index 93% rename from src/utils/getAllPosts.js rename to src/utils/getPosts.js index 7753c38..4b076af 100644 --- a/src/utils/getAllPosts.js +++ b/src/utils/getPosts.js @@ -18,7 +18,7 @@ const load = async function () { let _posts; -export const getAllPosts = async () => { +export const getPosts = async () => { _posts = _posts || load(); return await _posts;