aboutsummaryrefslogtreecommitdiff
path: root/src/api/databaseMigration.js
diff options
context:
space:
mode:
authorPitu <[email protected]>2020-05-11 00:57:56 +0900
committerPitu <[email protected]>2020-05-11 00:57:56 +0900
commit496477ebda3f6c347a9944e22daae447d15ebc31 (patch)
treec9449d39ec3f15a3a69a790fbe4c6fce60811b1d /src/api/databaseMigration.js
parentchore: cleanup and todo (diff)
downloadhost.fuwn.me-496477ebda3f6c347a9944e22daae447d15ebc31.tar.xz
host.fuwn.me-496477ebda3f6c347a9944e22daae447d15ebc31.zip
Feature: enable apiKey access to uploads and album fetching for the uploader/sharex/3rd party
Diffstat (limited to 'src/api/databaseMigration.js')
-rw-r--r--src/api/databaseMigration.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/databaseMigration.js b/src/api/databaseMigration.js
index 75611f3..5cf4b39 100644
--- a/src/api/databaseMigration.js
+++ b/src/api/databaseMigration.js
@@ -51,7 +51,7 @@ const start = async () => {
password: user.password,
enabled: user.enabled == 1 ? true : false,
isAdmin: false,
- apiKey: user.token, // Is this the best way to do it?
+ apiKey: user.token,
passwordEditedAt: now,
apiKeyEditedAt: now,
createdAt: now,