aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRan Guin <[email protected]>2021-06-10 18:09:25 -0700
committerRan Guin <[email protected]>2021-06-10 18:09:25 -0700
commitce08531ab8bdb3995b59dff19830489d547b9eb2 (patch)
treeb87de901c5bd7f1c7b028edef50236a857825b39
parent61b467f5336b495225ee076d7155e654c9dee754 (diff)
downloadcoinos-server-ce08531ab8bdb3995b59dff19830489d547b9eb2.tar.gz
coinos-server-ce08531ab8bdb3995b59dff19830489d547b9eb2.zip
add updated stamp for accounts
-rw-r--r--routes/admin.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/admin.js b/routes/admin.js
index deb8dd3e..b2c27369 100644
--- a/routes/admin.js
+++ b/routes/admin.js
@@ -150,7 +150,7 @@ router.get(
const {nonZero} = req.query
var accounts = knex
- .select('username', 'accounts.id as account_id', 'ticker', 'balance', knex.raw('LEFT(accounts.createdAt, 10) as created_at'))
+ .select('username', 'accounts.id as account_id', 'ticker', 'balance', knex.raw('LEFT(accounts.createdAt, 10) as created'), knex.raw('LEFT(accounts.updatedAt, 10) as updated'))
.from('accounts')
.leftJoin('users', 'users.id', 'accounts.user_id')