Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Commit

Permalink
Shared: Fix realm schema migration (#1326)
Browse files Browse the repository at this point in the history
  • Loading branch information
laumair authored and rajivshah3 committed Apr 16, 2019
1 parent f0f2ae8 commit 9b6d79e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 0 additions & 7 deletions src/shared/schemas/default.js
Expand Up @@ -286,13 +286,6 @@ export const WalletSettingsSchema = {
type: 'bool',
default: false,
},
/**
* Determines if deep linking is enabled
*/
deepLinking: {
type: 'bool',
default: false,
},
},
};

Expand Down
4 changes: 2 additions & 2 deletions src/shared/schemas/v2/index.js
@@ -1,6 +1,6 @@
import merge from 'lodash/merge';
import map from 'lodash/map';
import defaultSchemas from '../default';
import v1Schema from '../v1';

const migration = (_, newRealm) => {
const walletData = newRealm.objectForPrimaryKey('Wallet', 1);
Expand All @@ -9,7 +9,7 @@ const migration = (_, newRealm) => {
walletData.version = 2;
};

export default map(defaultSchemas, (schema) => {
export default map(v1Schema, (schema) => {
if (schema.name === 'WalletSettings') {
return merge({}, schema, {
properties: {
Expand Down

0 comments on commit 9b6d79e

Please sign in to comment.