Commit 7287b8f7 authored by 智勇's avatar 智勇

event_name

parent e9815c4c
...@@ -54,9 +54,9 @@ const webhooks = async function (ctx) { ...@@ -54,9 +54,9 @@ const webhooks = async function (ctx) {
logger.info('webhooks', req) logger.info('webhooks', req)
// user_add_to_team之类的操作 // user_add_to_team之类的操作
if (req.enent_name !== 'push') { if (req.event_name !== 'push') {
logger.info(`enent_name 是 ${req.enent_name}`) logger.info(`event_name 是 ${req.event_name}`)
ctx.body = ctx.ok(`enent_name 是 ${req.enent_name}`) ctx.body = ctx.ok(`event_name 是 ${req.event_name}`)
return return
} }
......
...@@ -23,7 +23,7 @@ const schema = new Schema({ ...@@ -23,7 +23,7 @@ const schema = new Schema({
}) })
schema.statics.savePipes = function (doc) { schema.statics.savePipes = function (doc) {
if (doc._id) { if (doc._id) {
return this.update({ return this.updateOne({
_id: doc._id, _id: doc._id,
}, doc) }, doc)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment