Skip to content

Commit

Permalink
fixed realm deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
larryrider committed Mar 28, 2024
1 parent e66d32d commit 902477f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default class Login extends Command {
await ConfigService.instance.saveUser(Object.assign(loginCredentials, { root_folder_uuid: rootMeta.uuid }));

const realm = await DriveRealmManager.getRealm();
realm.write(realm.deleteAll);
realm.write(() => realm.deleteAll());

CLIUtils.success(`Succesfully logged in to: ${loginCredentials.user.email} `);
}
Expand Down

0 comments on commit 902477f

Please sign in to comment.