We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65e66a2 commit b93e397Copy full SHA for b93e397
spec/v2/providers/alerts/alerts.spec.ts
@@ -205,6 +205,8 @@ describe('alerts', () => {
205
206
expect(converted).to.deep.eq({
207
...event,
208
+ alerttype: 'my-alert',
209
+ appid: 'my-app',
210
alertType: 'my-alert',
211
appId: 'my-app',
212
});
src/v2/providers/alerts/alerts.ts
@@ -283,11 +283,9 @@ export function convertAlertAndApp(
283
284
if ('alerttype' in event) {
285
(event as any).alertType = (event as any).alerttype;
286
- delete (event as any).alerttype;
287
}
288
if ('appid' in event) {
289
(event as any).appId = (event as any).appid;
290
- delete (event as any).appid;
291
292
293
return event;
0 commit comments