Skip to content

Commit 416c088

Browse files
committed
fix: add default params
1 parent 713a604 commit 416c088

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class CMNotify {
108108
async post(req, {
109109
verify = false,
110110
waitResponse = false
111-
}) {
111+
} = {}) {
112112
const isVerified = verify ? CMVerify.verify(req, this.secret) : true;
113113
if (!isVerified) {
114114
console.warn('Invalid signature');

0 commit comments

Comments
 (0)