- query = from n in Notification,
- where: n.user_id == ^user.id,
- order_by: [desc: n.id],
- preload: [:activity],
- limit: 20
-
- query = query
- |> restrict_since(opts)
- |> restrict_max(opts)
+ query =
+ from(
+ n in Notification,
+ where: n.user_id == ^user.id,
+ order_by: [desc: n.id],
+ preload: [:activity],
+ limit: 20
+ )
+
+ query =
+ query
+ |> restrict_since(opts)
+ |> restrict_max(opts)