Commit 67279f99 authored by duanjinfei's avatar duanjinfei

cache recent update app

parent 6bbfe034
......@@ -127,7 +127,7 @@ async function cacheCategoryApp(supabase, allApps, directory, bucketName) {
async function cacheRentUpdateApp(supabase, allApps, directory, bucketName) {
const recentUpdateAppFileName = `${directory}/resent_update_app.json`;
const pageJson = JSON.stringify(allApps.slice(0, 6))
const pageJson = JSON.stringify(allApps.slice(allApps.length - 6, allApps.length))
const { error: pageUploadError } = await supabase.storage
.from(bucketName)
.upload(recentUpdateAppFileName, new Blob([pageJson]), {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment