Skip to content

Commit 107cfa7

Browse files
committed
fix (example) add missing target to handler
1 parent 926da4e commit 107cfa7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

examples/handlers/generic-persistence.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
'use strict';
44

5-
Backendless.ServerCode.Persistence.afterCreate(function(req, res) {
6-
console.log('afterCreate');
7-
8-
//stop further operation proceeding and respond to the client with a specific result
9-
return { foo: 'bar' };
5+
Backendless.ServerCode.Persistence.afterCreate('*', function(req, res) {
6+
console.log('afterCreate:generic');
107
});

0 commit comments

Comments
 (0)