|
@@ -55,7 +55,7 @@ export default class Transaction{
|
|
|
account,
|
|
account,
|
|
|
null,
|
|
null,
|
|
|
encryptionHandler.generateIv(),
|
|
encryptionHandler.generateIv(),
|
|
|
- Format.transactionDate(date),
|
|
|
|
|
|
|
+ date,
|
|
|
{
|
|
{
|
|
|
category: category,
|
|
category: category,
|
|
|
categoryId: categoryId,
|
|
categoryId: categoryId,
|
|
@@ -68,6 +68,9 @@ export default class Transaction{
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
static async fetch(account, from, to){
|
|
static async fetch(account, from, to){
|
|
|
|
|
+ console.log(account);
|
|
|
|
|
+ console.log(from);
|
|
|
|
|
+ console.log(to);
|
|
|
let response;
|
|
let response;
|
|
|
try{
|
|
try{
|
|
|
response = await fetch("/api/transaction/search", {
|
|
response = await fetch("/api/transaction/search", {
|
|
@@ -76,6 +79,7 @@ export default class Transaction{
|
|
|
body: JSON.stringify({account, from, to})
|
|
body: JSON.stringify({account, from, to})
|
|
|
});
|
|
});
|
|
|
response = await response.json();
|
|
response = await response.json();
|
|
|
|
|
+ console.log(response);
|
|
|
|
|
|
|
|
const promises = [];
|
|
const promises = [];
|
|
|
for(let i = 0; i < response.length; i++){
|
|
for(let i = 0; i < response.length; i++){
|