Skip to content

Commit

Permalink
微修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Yayoi2078 committed Oct 22, 2024
1 parent d934ffa commit 439b214
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion common/models/item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ export class ItemEntity implements Item {
private _assignee: string | null,
) {}

static createNew({ name, abbr, price, type }: Omit<Item, "assignee">): ItemEntity {
static createNew({
name,
abbr,
price,
type,
}: Omit<Item, "assignee">): ItemEntity {
return new ItemEntity(undefined, name, abbr, price, type, null);
}

Expand Down

0 comments on commit 439b214

Please sign in to comment.