Compare commits
5 Commits
27-03-25-3
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
78e4445666 | ||
|
|
ef85af8369 | ||
|
|
2ce822ee09 | ||
|
|
7ec91f3312 | ||
|
|
c61f41be0c |
25
handler.js
25
handler.js
|
|
@ -53,14 +53,27 @@ export const handler = async (req, res) => {
|
|||
// BOILER_CODE_END
|
||||
|
||||
function modifyObj(obj) {
|
||||
// Enter your code here
|
||||
delete obj.properties.dynamic_yield;
|
||||
|
||||
// Check if 'properties.index' exists
|
||||
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:
|
||||
throw new EventNotSupportedException('your message here');
|
||||
throw new InvalidEventPayloadException('your message here');
|
||||
throw new InvalidEventobjException('your message here');
|
||||
throw new RetryErrorException('your message here');
|
||||
|
||||
Method for generating 256 hash code for a String:
|
||||
|
|
@ -68,3 +81,9 @@ Method for generating 256 hash code for a String:
|
|||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user