diff --git a/.github/workflows/deploy-backend-prod.yml b/.github/workflows/deploy-backend-prod.yml index b511c13cc..faee68c10 100644 --- a/.github/workflows/deploy-backend-prod.yml +++ b/.github/workflows/deploy-backend-prod.yml @@ -3,7 +3,7 @@ name: DeployBackendProd on: push: branches: - - "use-nuxt-image-to-show-images" + - "master" jobs: deploy-backend-prod: diff --git a/nuxt-frontend/components/partials/NewHeader.vue b/nuxt-frontend/components/partials/NewHeader.vue index 5b168580b..eb60cb2e8 100755 --- a/nuxt-frontend/components/partials/NewHeader.vue +++ b/nuxt-frontend/components/partials/NewHeader.vue @@ -269,8 +269,8 @@ export default { methods: { handleScroll() { let scrollY = this.podcastRef - ? this.podcastRef.scrollTop - : window.scrollY; + ? this.podcastRef.scrollTop + : window.scrollY; let pageYOffset = this.podcastRef ? scrollY : window.pageYOffset; let scrollUp = this.lastScrollY > scrollY && pageYOffset > 100; this.showNavbar = scrollUp || (this.showNavbar && pageYOffset > 0); @@ -286,7 +286,7 @@ export default { // Check if any child URL matches if (navbar.subMenus) { return navbar.subMenus.some( - (subMenu) => this.$route.path === subMenu.url + (subMenu) => this.$route.path === subMenu.url, ); } diff --git a/post/tag.go b/post/tag.go index a1bdbae80..a65a09e74 100644 --- a/post/tag.go +++ b/post/tag.go @@ -31,9 +31,9 @@ func (repository *Repository) GetPostsByTag(c *gin.Context) { posts := []Post{} err = repository.Db.Select(&posts, `SELECT id, title, slug, tags as tag, is_featured, is_published, published_on, published_at, reading_time, summary - FROM posts - WHERE `+query+` tags @> $1`, `[{"slug": "`+slug+`"}] - ORDER BY published_on DESC`) + FROM posts + WHERE `+query+` tags @> $1 + ORDER BY published_on DESC`, `[{"slug": "`+slug+`"}]`) if err != nil { log.Error("Error while fetching posts: ", err) c.AbortWithStatus(http.StatusInternalServerError)