From ebae2f4ec906404c6d14e768eabd6203bea5d085 Mon Sep 17 00:00:00 2001 From: Valentin Zickner <3200232+vzickner@users.noreply.github.com> Date: Tue, 11 May 2021 17:43:35 +0200 Subject: [PATCH] Feature/travis (#77) * integrate travis * fix prettier transactions-page.component.ts * change base branch to main * fetch all branches in .travis.yml --- .travis.yml | 9 +++++++++ .../pages/transactions/transactions-page.component.ts | 8 +++++--- nx.json | 2 +- 3 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..3c7dad881 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +language: node_js +git: + depth: false +node_js: + - 14 +before_script: + - yarn +script: + - yarn format:check diff --git a/apps/client/src/app/pages/transactions/transactions-page.component.ts b/apps/client/src/app/pages/transactions/transactions-page.component.ts index bfae6b8a1..1fbb17023 100644 --- a/apps/client/src/app/pages/transactions/transactions-page.component.ts +++ b/apps/client/src/app/pages/transactions/transactions-page.component.ts @@ -184,9 +184,11 @@ export class TransactionsPageComponent implements OnInit { data: { accounts: this.user?.accounts, transaction: { - accountId: aTransaction?.accountId ?? this.user?.accounts.find((account) => { - return account.isDefault; - })?.id, + accountId: + aTransaction?.accountId ?? + this.user?.accounts.find((account) => { + return account.isDefault; + })?.id, currency: aTransaction?.currency ?? null, dataSource: aTransaction?.dataSource ?? null, date: new Date(), diff --git a/nx.json b/nx.json index 26f7602c1..84f94e8e3 100644 --- a/nx.json +++ b/nx.json @@ -6,7 +6,7 @@ ".eslintrc.json": "*", "nx.json": "*" }, - "affected": { "defaultBase": "master" }, + "affected": { "defaultBase": "origin/main" }, "npmScope": "ghostfolio", "tasksRunnerOptions": { "default": {