Skip to content

Commit

Permalink
Merge pull request mgilangjanuar#343 from mgilangjanuar/staging
Browse files Browse the repository at this point in the history
Release v2.2.3
  • Loading branch information
mgilangjanuar authored Apr 28, 2022
2 parents 4be9366 + 49f486b commit c25348b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "teledrive",
"version": "2.2.2",
"version": "2.2.3",
"repository": "[email protected]:mgilangjanuar/teledrive.git",
"author": "M Gilang Januar <[email protected]>",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "server",
"version": "2.2.2",
"version": "2.2.3",
"main": "dist/index.js",
"license": "MIT",
"private": true,
Expand Down Expand Up @@ -89,4 +89,4 @@
"rimraf": "^3.0.2",
"typescript": "^4.4.2"
}
}
}
8 changes: 4 additions & 4 deletions server/src/api/v1/Auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export class Auth {
}
await prisma.users.update({
data: {
username: req.userAuth.username || req.userAuth.phone || user.username,
username: req.userAuth?.username || req.userAuth?.phone || user.username,
plan: 'premium'
},
where: { id: user.id }
Expand Down Expand Up @@ -278,7 +278,7 @@ export class Auth {

await prisma.users.update({
data: {
username: req.userAuth.username || req.userAuth.phone || user.username,
username: userAuth.username || userAuth.phone,
plan: 'premium'
},
where: { id: user.id }
Expand Down Expand Up @@ -395,7 +395,7 @@ export class Auth {
}
await prisma.users.update({
data: {
username: req.userAuth.username || req.userAuth.phone || user.username,
username: userAuth['username'] || userAuth['phone'],
plan: 'premium'
},
where: { id: user.id }
Expand Down Expand Up @@ -430,7 +430,7 @@ export class Auth {
}
await prisma.users.update({
data: {
username: req.userAuth.username || req.userAuth.phone || user.username,
username: userAuth['username'] || userAuth['phone'],
plan: 'premium'
},
where: { id: user.id }
Expand Down
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web",
"version": "2.2.2",
"version": "2.2.3",
"private": true,
"dependencies": {
"@ideasio/add-to-homescreen-react": "^1.0.10",
Expand Down
2 changes: 1 addition & 1 deletion web/src/utils/Constant.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const VERSION = '2.2.2'
export const VERSION = '2.2.3'
export const MAX_UPLOAD_SIZE = 2_000_000_000
export const CHUNK_SIZE = 512 * 1024
export const RETRY_COUNT = 50

0 comments on commit c25348b

Please sign in to comment.