diff options
Diffstat (limited to 'store/sql_file_info_store.go')
-rw-r--r-- | store/sql_file_info_store.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/store/sql_file_info_store.go b/store/sql_file_info_store.go index 5c3f6b1a4..78c36c08a 100644 --- a/store/sql_file_info_store.go +++ b/store/sql_file_info_store.go @@ -101,7 +101,8 @@ func (fs SqlFileInfoStore) GetByPath(path string) StoreChannel { FileInfo WHERE Path = :Path - AND DeleteAt = 0`, map[string]interface{}{"Path": path}); err != nil { + AND DeleteAt = 0 + LIMIT 1`, map[string]interface{}{"Path": path}); err != nil { result.Err = model.NewLocAppError("SqlFileInfoStore.GetByPath", "store.sql_file_info.get_by_path.app_error", nil, "path="+path+", "+err.Error()) } else { result.Data = info |