Skip to content

Commit

Permalink
Fix: Order data sources in ascending order based on createdAt for ser…
Browse files Browse the repository at this point in the history
…vice endpoint

Signed-off-by: George J Padayatti <[email protected]>
  • Loading branch information
georgepadayatti committed Apr 8, 2024
1 parent d14ba64 commit b6c4dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def get(self, request):
if dataSourceId_param:
data_sources = DataSource.objects.filter(pk=dataSourceId_param)
else:
data_sources = DataSource.objects.all().order_by("-createdAt")
data_sources = DataSource.objects.all().order_by("createdAt")

data_sources, pagination_data = paginate_queryset(data_sources, request)
serialized_data_sources = []
Expand Down

0 comments on commit b6c4dae

Please sign in to comment.