Openstatus www.openstatus.dev
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

๐Ÿ› header (#338)

authored by

Thibault Le Ouay and committed by
GitHub
5d57f822 b8c25f72

+7 -1
+7 -1
packages/api/src/router/monitor.ts
··· 64 64 ...data, 65 65 workspaceId: result.workspace.id, 66 66 regions: regions?.join(","), 67 + headers: headers ? JSON.stringify(headers) : undefined, 67 68 }) 68 69 .returning() 69 70 .get(); ··· 147 148 const { regions, headers, ...data } = opts.input; 148 149 await opts.ctx.db 149 150 .update(monitor) 150 - .set({ ...data, regions: regions?.join(","), updatedAt: new Date() }) 151 + .set({ 152 + ...data, 153 + regions: regions?.join(","), 154 + updatedAt: new Date(), 155 + headers: headers ? JSON.stringify(headers) : undefined, 156 + }) 151 157 .where(eq(monitor.id, opts.input.id)) 152 158 .returning() 153 159 .get();