{"action":"created","issue":{"url":"https://api.github.com/repos/thx/rap2-delos/issues/317","repository_url":"https://api.github.com/repos/thx/rap2-delos","labels_url":"https://api.github.com/repos/thx/rap2-delos/issues/317/labels{/name}","comments_url":"https://api.github.com/repos/thx/rap2-delos/issues/317/comments","events_url":"https://api.github.com/repos/thx/rap2-delos/issues/317/events","html_url":"https://github.com/thx/rap2-delos/issues/317","id":357098681,"node_id":"MDU6SXNzdWUzNTcwOTg2ODE=","number":317,"title":"保存模块时没有同步更新到redis","user":{"login":"xiaoxing598","id":5615719,"node_id":"MDQ6VXNlcjU2MTU3MTk=","avatar_url":"https://avatars3.githubusercontent.com/u/5615719?v=4","gravatar_id":"","url":"https://api.github.com/users/xiaoxing598","html_url":"https://github.com/xiaoxing598","followers_url":"https://api.github.com/users/xiaoxing598/followers","following_url":"https://api.github.com/users/xiaoxing598/following{/other_user}","gists_url":"https://api.github.com/users/xiaoxing598/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaoxing598/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaoxing598/subscriptions","organizations_url":"https://api.github.com/users/xiaoxing598/orgs","repos_url":"https://api.github.com/users/xiaoxing598/repos","events_url":"https://api.github.com/users/xiaoxing598/events{/privacy}","received_events_url":"https://api.github.com/users/xiaoxing598/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-05T07:26:46Z","updated_at":"2018-09-18T07:59:49Z","closed_at":"2018-09-18T07:59:49Z","author_association":"NONE","body":"**BUG描述**\r\nrouter.post('/module/update', async (ctx, next) => {\r\n  const { id, name, description } = ctx.request.body\r\n  await Module.update({ name, description }, {\r\n    where: { id }\r\n  })\r\n  ctx.body = {\r\n    data: {\r\n      name,\r\n      description,\r\n    },\r\n  }\r\n  return next()\r\n}, async (ctx) => {\r\n  if (ctx.body.data === 0) return\r\n  let mod = ctx.request.body\r\n  await Logger.create({\r\n    userId: ctx.session.id,\r\n    type: 'update',\r\n    repositoryId: mod.repositoryId,\r\n    moduleId: mod.id,\r\n  })\r\n})\r\n\r\n**复现步骤**\r\n保存或更新模块数据\r\n\r\n**期望结果**\r\n数据库和redis同步更新\r\n\r\n**实际结果**\r\n仅数据库有更新\r\n\r\n**截图**\r\n\r\n\r\n**环境**\r\n* 自建服务器\r\n* 如果是前端错误，请提供浏览器版本\r\n* 其它可能帮助我们排查问题的环境信息\r\n\r\n**附加信息**\r\n"},"comment":{"url":"https://api.github.com/repos/thx/rap2-delos/issues/comments/422294486","html_url":"https://github.com/thx/rap2-delos/issues/317#issuecomment-422294486","issue_url":"https://api.github.com/repos/thx/rap2-delos/issues/317","id":422294486,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjI5NDQ4Ng==","user":{"login":"Bosn","id":1892986,"node_id":"MDQ6VXNlcjE4OTI5ODY=","avatar_url":"https://avatars3.githubusercontent.com/u/1892986?v=4","gravatar_id":"","url":"https://api.github.com/users/Bosn","html_url":"https://github.com/Bosn","followers_url":"https://api.github.com/users/Bosn/followers","following_url":"https://api.github.com/users/Bosn/following{/other_user}","gists_url":"https://api.github.com/users/Bosn/gists{/gist_id}","starred_url":"https://api.github.com/users/Bosn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bosn/subscriptions","organizations_url":"https://api.github.com/users/Bosn/orgs","repos_url":"https://api.github.com/users/Bosn/repos","events_url":"https://api.github.com/users/Bosn/events{/privacy}","received_events_url":"https://api.github.com/users/Bosn/received_events","type":"User","site_admin":false},"created_at":"2018-09-18T07:59:49Z","updated_at":"2018-09-18T07:59:49Z","author_association":"MEMBER","body":"已修复，详见晚些时间的push"}}
{"actor":{"display_login":"Bosn"}}