From d2b2f9d402ae3fcd3f09d69adb104a8e44cc10f4 Mon Sep 17 00:00:00 2001 From: jysperm Date: Mon, 21 Jul 2014 15:56:00 +0800 Subject: [PATCH] fixbugs --- WIKI/App/WordPress.md | 6 +++--- WIKI/README.md | 2 +- core/model/ticket.coffee | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/WIKI/App/WordPress.md b/WIKI/App/WordPress.md index aae05056..7d98ab70 100644 --- a/WIKI/App/WordPress.md +++ b/WIKI/App/WordPress.md @@ -21,9 +21,9 @@ mysql -p - 创建数据库(补全你的用户名): +(在 MySQL 中) 创建数据库(补全你的用户名): - CREATE DATABASE `<用户名>_wordpress`; + CREATE DATABASE `<用户名>_wordpress`; 回到面板添加 Nginx 站点(补全你的用户名): @@ -34,7 +34,7 @@ "index.php", "index.html" ], - "root": "/home/<用户名>/web", + "root": "/home/<用户名>/wordpress", "location": { "/": { "try_files": ["$uri", "$uri/", "/index.php?$args"] diff --git a/WIKI/README.md b/WIKI/README.md index 8170b784..82217a55 100644 --- a/WIKI/README.md +++ b/WIKI/README.md @@ -31,4 +31,4 @@ ### App -* WordPress +* [WordPress](App/WordPress.md) diff --git a/core/model/ticket.coffee b/core/model/ticket.coffee index 1dba6ef8..4844d6eb 100644 --- a/core/model/ticket.coffee +++ b/core/model/ticket.coffee @@ -72,7 +72,7 @@ exports.createReply = (ticket, account, content, status, callback) -> callback null, data exports.addMember = (ticket, account, callback) -> - exports.update + exports.update _id: ticker._id, $push: members: account._id updated_at: new Date()