feat(ui): useStartupLogs accepts sort parameter (default desc)
This commit is contained in:
@@ -143,13 +143,14 @@ export function useStartupLogs(
|
|||||||
environment: string | undefined,
|
environment: string | undefined,
|
||||||
deployCreatedAt: string | undefined,
|
deployCreatedAt: string | undefined,
|
||||||
isStarting: boolean,
|
isStarting: boolean,
|
||||||
|
sort: 'asc' | 'desc' = 'desc',
|
||||||
) {
|
) {
|
||||||
const params: LogSearchParams = {
|
const params: LogSearchParams = {
|
||||||
application: application || undefined,
|
application: application || undefined,
|
||||||
environment: environment ?? '',
|
environment: environment ?? '',
|
||||||
source: 'container',
|
source: 'container',
|
||||||
from: deployCreatedAt || undefined,
|
from: deployCreatedAt || undefined,
|
||||||
sort: 'asc',
|
sort,
|
||||||
limit: 500,
|
limit: 500,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user