started making graphql do the right thing.

This commit is contained in:
Bryce Covert
2018-08-10 22:36:37 -07:00
parent 8ebd3da0c7
commit cbbabb2219
4 changed files with 28 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
(ns autoap.datomic
(ns auto-ap.datomic
(:require [datomic.api :as d]
[auto-ap.db.vendors :as v]
[auto-ap.db.companies :as c]
@@ -166,7 +166,7 @@
(def bank-account-schema
[{:db/ident :bank-account/id
[{:db/ident :bank-account/external-id
:db/valueType :db.type/long
:db/cardinality :db.cardinality/one
:db/doc "Identifier for bank account"}
@@ -569,7 +569,7 @@
(fn [{:keys [number id check-number bank-name bank-code routing name yodlee-account-id type] }]
(remove-nils #:bank-account {:number number
:original-id (str client-id "-" id)
:id id
:external-id id
:check-number check-number
:bank-name bank-name
:bank-code bank-code
@@ -581,7 +581,7 @@
:bank-account-type/check)}))
bank-accounts)
#:bank-account {:original-id (str client-id "-" 0)
:id 0
:external-id 0
:type :bank-account-type/cash})} )))
(d/transact (d/connect uri))))