Skip to content

Commit

Permalink
added update to reverted version once fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
martinalong committed Jul 3, 2021
1 parent 52a7f75 commit 21acb1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions node_common/serializers.js
Expand Up @@ -89,6 +89,7 @@ export const cleanUser = (entity) => {
twitterId: entity.twitterId,
authVersion: entity.authVersion,
data: entity.data,
revertedVersion: entity.revertedVersion,
// data: {
// name: entity.data?.name,
// photo: entity.data?.photo,
Expand Down
1 change: 1 addition & 0 deletions pages/api/sign-in.js
Expand Up @@ -81,6 +81,7 @@ export default async (req, res) => {

if (user.authVersion === 1) {
userUpdates.authVersion = 2;
userUpdates.revertedVersion = false;
}

if (updatePassword) {
Expand Down

0 comments on commit 21acb1e

Please sign in to comment.