Change format for map function.
Build and Deploy API / build-and-deploy (push) Successful in 1m42s
Details
Build and Deploy API / build-and-deploy (push) Successful in 1m42s
Details
This commit is contained in:
parent
c48d8009f5
commit
43b1f153ad
|
|
@ -345,7 +345,7 @@ TransactionCategoryResponse[] getChildCategories(ProfileDataSource ds, ulong cat
|
||||||
import std.algorithm : map;
|
import std.algorithm : map;
|
||||||
import std.array : array;
|
import std.array : array;
|
||||||
auto categories = ds.getTransactionCategoryRepository().findAllByParentId(Optional!ulong.of(categoryId));
|
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) {
|
TransactionCategoryResponse createCategory(ProfileDataSource ds, in CategoryPayload payload) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue