mirror of
https://github.com/coder/coder.git
synced 2026-10-24 01:26:25 +08:00
Hide build logs older than 30 days (#4436)
This commit is contained in:
+2
-1
@@ -406,9 +406,10 @@ export const regenerateUserSSHKey = async (userId = "me"): Promise<TypesGen.GitS
|
||||
|
||||
export const getWorkspaceBuilds = async (
|
||||
workspaceId: string,
|
||||
since: Date,
|
||||
): Promise<TypesGen.WorkspaceBuild[]> => {
|
||||
const response = await axios.get<TypesGen.WorkspaceBuild[]>(
|
||||
`/api/v2/workspaces/${workspaceId}/builds`,
|
||||
`/api/v2/workspaces/${workspaceId}/builds?since=${since.toISOString()}`,
|
||||
)
|
||||
return response.data
|
||||
}
|
||||
|
||||
@@ -645,6 +645,7 @@ export interface WorkspaceBuild {
|
||||
// From codersdk/workspaces.go
|
||||
export interface WorkspaceBuildsRequest extends Pagination {
|
||||
readonly WorkspaceID: string
|
||||
readonly Since: string
|
||||
}
|
||||
|
||||
// From codersdk/workspaces.go
|
||||
|
||||
Reference in New Issue
Block a user