diff --git a/finnow-api/source/transaction/service.d b/finnow-api/source/transaction/service.d index d1ae318..280a7c3 100644 --- a/finnow-api/source/transaction/service.d +++ b/finnow-api/source/transaction/service.d @@ -345,7 +345,7 @@ TransactionCategoryResponse[] getChildCategories(ProfileDataSource ds, ulong cat import std.algorithm : map; import std.array : array; auto categories = ds.getTransactionCategoryRepository().findAllByParentId(Optional!ulong.of(categoryId)); - return categories.map!(TransactionCategoryResponse.of).array; + return categories.map!(c => TransactionCategoryResponse.of(c)).array; } TransactionCategoryResponse createCategory(ProfileDataSource ds, in CategoryPayload payload) {