summaryrefslogtreecommitdiff
path: root/Application/RemoveTransaction
diff options
context:
space:
mode:
Diffstat (limited to 'Application/RemoveTransaction')
-rw-r--r--Application/RemoveTransaction/index.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/Application/RemoveTransaction/index.php b/Application/RemoveTransaction/index.php
index ad0ed5d..138f6a8 100644
--- a/Application/RemoveTransaction/index.php
+++ b/Application/RemoveTransaction/index.php
@@ -49,4 +49,5 @@ $list = array_filter($list, function ($item) {
return ($item["date"] !== base64url_decode($_GET['Transaction']));
});
+file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/Private/Data/Transactions." . str_replace(":", "-", date('c')) . ".json", file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/Private/Data/Transactions.json"));
file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/Private/Data/Transactions.json", json_encode($list)); \ No newline at end of file