add news api
This commit is contained in:
@@ -82,7 +82,7 @@ export class PackageController extends Controller {
|
||||
|
||||
const package_ = orm.em.create(Package, {
|
||||
id: ulid(),
|
||||
slug: slugify(body.name),
|
||||
slug: slugify(body.name, { lower: true }),
|
||||
name: body.name,
|
||||
type: body.type,
|
||||
class: body.class,
|
||||
@@ -261,7 +261,7 @@ export class PackageController extends Controller {
|
||||
package_.thumbnail,
|
||||
);
|
||||
|
||||
package_.slug = slugify(body.name);
|
||||
package_.slug = slugify(body.name, { lower: true });
|
||||
package_.name = body.name;
|
||||
package_.type = body.type;
|
||||
package_.class = body.class;
|
||||
|
||||
Reference in New Issue
Block a user