From 100bc082266f2c89b882e235878226fdc3b0eb4e Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 12 May 2024 00:03:34 +0000 Subject: [PATCH] bug fixes --- .github/workflows/greetings.yml | 2 +- Controller/ApiController.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index adb8716..75cb759 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -9,5 +9,5 @@ jobs: - uses: actions/first-interaction@v1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - issue-message: 'Thank you for createing this issue. We will check it as soon as possible.' + issue-message: 'Thank you for creating this issue. We will check it as soon as possible.' pr-message: 'Thank you for your pull request. We will check it as soon as possible.' diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 0489198..632fa75 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -585,7 +585,7 @@ final class ApiController extends Controller pathSettings: PathSettings::FILE_PATH, hasAccountRelation: false, readContent: $request->getDataBool('parse_content') ?? false, - type: $request->getDataInt('type'), + tag: $request->getDataInt('tag'), rel: $expense->id, mapper: ExpenseMapper::class, field: 'files' @@ -670,7 +670,7 @@ final class ApiController extends Controller pathSettings: PathSettings::FILE_PATH, hasAccountRelation: false, readContent: $request->getDataBool('parse_content') ?? false, - type: $request->getData('type'), + tag: $request->getDataInt('tag'), rel: $element, mapper: ExpenseElementMapper::class, field: 'files'