Skip to content

Commit 822974e

Browse files
committed
update hooks
1 parent 166e579 commit 822974e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function onQuery(collectionName, cb) {
3939
function hook(method, pattern, fn) {
4040
var backend = this;
4141

42-
backend.use('after submit', function (shareRequest, next) {
42+
backend.use('afterWrite', function (shareRequest, next) {
4343
var collectionName, firstDot, fullPath, matches, regExp, relPath, segments, op;
4444

4545
var opData = shareRequest.opData || shareRequest.op;

0 commit comments

Comments
 (0)