mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 15:17:14 +08:00
FIX: fix typo
This commit is contained in:
parent
6431daaa2e
commit
4eb8d1e717
|
@ -39,7 +39,7 @@ export default (filterArg, params) => {
|
|||
if (parts.length > 0 && parts[parts.length - 1].match(/^\d+$/)) {
|
||||
const id = parseInt(parts.pop(), 10);
|
||||
|
||||
category = Category.findByID(id);
|
||||
category = Category.findById(id);
|
||||
} else {
|
||||
const [slug, parentSlug] = [...parts].reverse();
|
||||
|
||||
|
@ -52,7 +52,7 @@ export default (filterArg, params) => {
|
|||
) {
|
||||
const id = parseInt(parts.pop(), 10);
|
||||
|
||||
category = Category.findByID(id);
|
||||
category = Category.findById(id);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user