Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion services/platform/src/campaigns/CampaignController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ router.use(projectRoleMiddleware('editor'))

router.get('/', async ctx => {
const searchSchema = SearchSchema('campaignSearchSchema', {
sort: 'id',
sort: 'created_at',
direction: 'desc',
})
const params = extractQueryParams(ctx.query, searchSchema)
Expand Down
2 changes: 1 addition & 1 deletion services/platform/src/storage/ImageController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ router.post('/', async ctx => {

router.get('/', async ctx => {
const searchSchema = SearchSchema('imagesSearchSchema', {
sort: 'id',
sort: 'created_at',
direction: 'desc',
})
const params = extractQueryParams(ctx.query, searchSchema)
Expand Down
2 changes: 1 addition & 1 deletion services/platform/src/users/UserController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const router = new Router<

router.get('/', async ctx => {
const searchSchema = SearchSchema('usersSearchSchema', {
sort: 'id',
sort: 'created_at',
direction: 'desc',
})
const params = extractQueryParams(ctx.query, searchSchema)
Expand Down
2 changes: 1 addition & 1 deletion services/ui/src/views/journey/JourneyStepUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function JourneyStepUsers({ open, onClose, stepType, stepId }: StepUsersP

const state = useSearchTableState(useCallback(async params => await api.journeys.steps.searchUsers(projectId, journeyId, stepId, params), [projectId, journeyId, stepId]), {
limit: 10,
sort: 'id',
sort: 'created_at',
direction: 'desc',
})

Expand Down