Skip to content

Commit

Permalink
fix(post download): not working as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Jan 13, 2024
1 parent 2b476ad commit 8912cfc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/pages/posts/post/PostDownload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
const { proxiedUrl } = useProxyHelper(props.mediaUrl)
const response = await $fetch.raw(proxiedUrl, {
const response = await $fetch.raw(proxiedUrl.value, {
responseType: 'blob',
onResponseError(context) {
Expand Down
2 changes: 1 addition & 1 deletion pages/premium/backup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
title: 'Backup'
})
// definePageMeta({ middleware: 'auth' })
definePageMeta({ middleware: 'auth' })
</script>

<template>
Expand Down
6 changes: 3 additions & 3 deletions pages/premium/saved-posts/[domain].vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@
// .orderBy('created_at')
.reverse()
//
.limit(PAGE_SIZE)
.offset(page * PAGE_SIZE)
// .limit(PAGE_SIZE)
// .offset(page * PAGE_SIZE)
//
.toArray()
Expand Down Expand Up @@ -341,7 +341,7 @@
})
definePageMeta({
// middleware: 'auth',
middleware: 'auth',
validate: async (route) => {
const page = route.query.page
Expand Down

0 comments on commit 8912cfc

Please sign in to comment.