u
This commit is contained in:
@@ -15,6 +15,7 @@ SELECT
|
||||
t.parent_id AS parentId,
|
||||
t.sort,
|
||||
ct.name,
|
||||
ct.slug,
|
||||
p.thumbw AS thumbW,
|
||||
p.thumbh AS thumbH,
|
||||
p.thumbhash AS thumbHash
|
||||
|
||||
@@ -54,6 +54,7 @@ export default function createUnderParent(pool) {
|
||||
parentId: resolvedParentId,
|
||||
sort,
|
||||
name,
|
||||
slug,
|
||||
};
|
||||
} catch (err) {
|
||||
try {
|
||||
|
||||
@@ -36,6 +36,6 @@ export default function rename(pool) {
|
||||
throw new Error('Category not found');
|
||||
}
|
||||
|
||||
return { id, name: cleaned };
|
||||
return { id, name: cleaned, slug };
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user