aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-01-31 19:56:31 -0800
committerAdam Soltys <[email protected]>2023-01-31 19:56:31 -0800
commitcf29dcc02e2c9ac593d6e8f0aff2589b80ffa994 (patch)
tree447e4a87e739ba4e53e8f31f6e1883cd54896dde /src/lib
parenteff1fd2b4747d07a6b342d2561785c18ea500bcb (diff)
downloadcoinos-ui-cf29dcc02e2c9ac593d6e8f0aff2589b80ffa994.tar.gz
coinos-ui-cf29dcc02e2c9ac593d6e8f0aff2589b80ffa994.zip
prettier
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/upload.js2
-rw-r--r--src/lib/utils.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/upload.js b/src/lib/upload.js
index 899dbb0c..d8b27061 100644
--- a/src/lib/upload.js
+++ b/src/lib/upload.js
@@ -1,5 +1,5 @@
export const upload = async (file, type, progress, token) => {
- console.log("TYPE", type)
+ console.log('TYPE', type);
let url = `/api/upload/${type}`;
let formData = new FormData();
formData.append('file', file);
diff --git a/src/lib/utils.js b/src/lib/utils.js
index e4b1194f..2b5dda90 100644
--- a/src/lib/utils.js
+++ b/src/lib/utils.js
@@ -137,7 +137,7 @@ export const login = async (user, cookies) => {
let expires = new Date();
expires.setSeconds(expires.getSeconds() + maxAge);
- let opts = { path: '/', expires }
+ let opts = { path: '/', expires };
cookies.set('username', user.username, opts);
cookies.set('token', token, opts);
};