modify method name

This commit is contained in:
MaysWind
2025-03-23 14:54:55 +08:00
parent 1d23558dff
commit fc2c5a8e6c
11 changed files with 18 additions and 18 deletions
+3 -3
View File
@@ -83,11 +83,11 @@ export class TransactionCategory implements TransactionCategoryInfoResponse {
categoryResponse.comment,
categoryResponse.displayOrder,
!categoryResponse.hidden,
categoryResponse.subCategories ? TransactionCategory.ofMany(categoryResponse.subCategories) : undefined
categoryResponse.subCategories ? TransactionCategory.ofMulti(categoryResponse.subCategories) : undefined
);
}
public static ofMany(categoryResponses: TransactionCategoryInfoResponse[]): TransactionCategory[] {
public static ofMulti(categoryResponses: TransactionCategoryInfoResponse[]): TransactionCategory[] {
const categories: TransactionCategory[] = [];
for (const categoryResponse of categoryResponses) {
@@ -105,7 +105,7 @@ export class TransactionCategory implements TransactionCategoryInfoResponse {
continue;
}
ret[categoryType] = TransactionCategory.ofMany(categoriesByType[categoryType]);
ret[categoryType] = TransactionCategory.ofMulti(categoriesByType[categoryType]);
}
return ret;