Compare commits
No commits in common. "main" and "27-03-25-76fd61" have entirely different histories.
main
...
27-03-25-7
25
handler.js
25
handler.js
|
|
@ -53,27 +53,14 @@ export const handler = async (req, res) => {
|
||||||
// BOILER_CODE_END
|
// BOILER_CODE_END
|
||||||
|
|
||||||
function modifyObj(obj) {
|
function modifyObj(obj) {
|
||||||
|
// Enter your code here
|
||||||
// Check if 'properties.index' exists
|
delete obj.properties.dynamic_yield;
|
||||||
if (obj.properties?.index) {
|
|
||||||
// Add a new key to indicate transformation
|
|
||||||
obj.properties.tranformationStatus = "success"
|
|
||||||
|
|
||||||
}
|
}
|
||||||
//else {
|
|
||||||
// throw new Error("'properties.index' is required but missing...");
|
|
||||||
// }
|
|
||||||
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Exceptions available:
|
Exceptions available:
|
||||||
throw new EventNotSupportedException('your message here');
|
throw new EventNotSupportedException('your message here');
|
||||||
throw new InvalidEventobjException('your message here');
|
throw new InvalidEventPayloadException('your message here');
|
||||||
throw new RetryErrorException('your message here');
|
throw new RetryErrorException('your message here');
|
||||||
|
|
||||||
Method for generating 256 hash code for a String:
|
Method for generating 256 hash code for a String:
|
||||||
|
|
@ -81,9 +68,3 @@ Method for generating 256 hash code for a String:
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user