diff options
| author | Adam Soltys <[email protected]> | 2024-09-20 10:04:08 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-09-20 10:04:08 -0700 |
| commit | 01e1686265def675445c0f74a4b92ec4ffd71492 (patch) | |
| tree | 2d90795be17f5d15345540af80b9f2ca5261389c /lib/migrate.ts | |
| parent | 718e3541cffe2103512b19f4945dfcc79813555d (diff) | |
| download | coinos-server-01e1686265def675445c0f74a4b92ec4ffd71492.tar.gz coinos-server-01e1686265def675445c0f74a4b92ec4ffd71492.zip | |
rename account id
Diffstat (limited to 'lib/migrate.ts')
| -rw-r--r-- | lib/migrate.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/migrate.ts b/lib/migrate.ts index a289dee2..d26c8581 100644 --- a/lib/migrate.ts +++ b/lib/migrate.ts @@ -21,7 +21,10 @@ async function migrate(id) { let accounts = await db.lLen(`${user.id}:accounts`); if (!accounts) { - await db.set(`account:${user.id}`, JSON.stringify({ id: user.id, name: "Cash" })); + await db.set( + `account:${user.id}`, + JSON.stringify({ id: user.id, name: "Cash", type: types.ecash }), + ); await db.lPush(`${user.id}:accounts`, user.id); } return user; |
