summaryrefslogtreecommitdiffstats
path: root/store/sql_audit_store.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-11-02 07:56:12 -0500
committerChristopher Speller <crspeller@gmail.com>2015-11-02 07:56:12 -0500
commit359039980048aab2f89ac423e4be55914c948e69 (patch)
treebe88398d0bbad5a0a3be57422635931508ab86d6 /store/sql_audit_store.go
parent8282d4077933c7ac8039fb45a563ba62609d2457 (diff)
parent42d3694e4bf59c4b71f89f9c02938a23c9bbd84d (diff)
downloadchat-359039980048aab2f89ac423e4be55914c948e69.tar.gz
chat-359039980048aab2f89ac423e4be55914c948e69.tar.bz2
chat-359039980048aab2f89ac423e4be55914c948e69.zip
Merge pull request #1246 from trashcan/fix-spelling
Fix spelling of "encountered" and "environment"
Diffstat (limited to 'store/sql_audit_store.go')
-rw-r--r--store/sql_audit_store.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/store/sql_audit_store.go b/store/sql_audit_store.go
index 898cf8f78..b3e2daea0 100644
--- a/store/sql_audit_store.go
+++ b/store/sql_audit_store.go
@@ -46,7 +46,7 @@ func (s SqlAuditStore) Save(audit *model.Audit) StoreChannel {
if err := s.GetMaster().Insert(audit); err != nil {
result.Err = model.NewAppError("SqlAuditStore.Save",
- "We encounted an error saving the audit", "user_id="+
+ "We encountered an error saving the audit", "user_id="+
audit.UserId+" action="+audit.Action)
}
@@ -75,7 +75,7 @@ func (s SqlAuditStore) Get(user_id string, limit int) StoreChannel {
var audits model.Audits
if _, err := s.GetReplica().Select(&audits, "SELECT * FROM Audits WHERE UserId = :user_id ORDER BY CreateAt DESC LIMIT :limit",
map[string]interface{}{"user_id": user_id, "limit": limit}); err != nil {
- result.Err = model.NewAppError("SqlAuditStore.Get", "We encounted an error finding the audits", "user_id="+user_id)
+ result.Err = model.NewAppError("SqlAuditStore.Get", "We encountered an error finding the audits", "user_id="+user_id)
} else {
result.Data = audits
}