From 495e64a2d2568536183a01f5c95cd293d26fd441 Mon Sep 17 00:00:00 2001 From: Zack Siri Date: Wed, 4 Dec 2024 16:35:52 +0700 Subject: [PATCH 1/2] Order episode by index asc --- lib/opsmaru/courses/section/manager.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/opsmaru/courses/section/manager.ex b/lib/opsmaru/courses/section/manager.ex index 45a5dff..42d26c9 100644 --- a/lib/opsmaru/courses/section/manager.ex +++ b/lib/opsmaru/courses/section/manager.ex @@ -13,7 +13,7 @@ defmodule Opsmaru.Courses.Section.Manager do ..., chapter -> { ..., - "episodes": *[ _type == "courseEpisode" && references(^._id) ] { + "episodes": *[ _type == "courseEpisode" && references(^._id) ] | order(index asc) { ..., "content": content.asset -> url, author -> {..., "avatar": {"url": avatar.asset -> url, "alt": avatar.alt}}, From af4110865406d3479db9439b71eff22ba127b321 Mon Sep 17 00:00:00 2001 From: Zack Siri Date: Wed, 4 Dec 2024 17:00:00 +0700 Subject: [PATCH 2/2] Update version --- mix.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index 135481e..57babfe 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule Opsmaru.MixProject do def project do [ app: :opsmaru, - version: "0.1.11", + version: "0.1.12", elixir: "~> 1.14", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod,