We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d3b060 commit a350462Copy full SHA for a350462
1 file changed
server/db_pre_save+webhook/cat.js
@@ -15,11 +15,17 @@ process.stdin.on('end', () => {
15
let data;
16
try {
17
data = JSON.parse(input)
18
+ // fs.writeFileSync('/tmp/post-req', JSON.stringify(data));
19
delete(data.info)
20
+ for (const obj of data.objects) {
21
+ if (obj.bounce?._version > 1 && obj.bounce?.ref) {
22
+ // add hint about current to "ref"
23
+ obj.bounce.ref += ", current version: "+obj._current?.bounce._version
24
+ }
25
26
} catch(e) {
27
console.error(`Could not parse input: ${e.message}`, e.stack)
28
process.exit(1)
29
}
- // fs.writeFileSync('/tmp/post-req', JSON.stringify(data));
30
console.log(JSON.stringify(data, "", " "))
31
})
0 commit comments