Skip to content

Commit

Permalink
Surface deployments with components on health page (#33079)
Browse files Browse the repository at this point in the history
Include push_config_with_components in the response for last deployed time

GitOrigin-RevId: 25138788a653e939e5a7af5c68105103223e9b20
  • Loading branch information
atrakh authored and Convex, Inc. committed Jan 13, 2025
1 parent 43485ac commit c7a8646
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ export const lastPushEvent = queryPrivateSystem({
handler: async function ({ db }): Promise<PushConfigEvent | null> {
const lastPushEvent = await db
.query("_deployment_audit_log")
.filter((q) => q.eq(q.field("action"), "push_config"))
.filter((q) =>
q.or(
q.eq(q.field("action"), "push_config"),
q.eq(q.field("action"), "push_config_with_components"),
),
)
.order("desc")
.first();

Expand Down

0 comments on commit c7a8646

Please sign in to comment.