Skip to content

Commit

Permalink
turns out the migration was broken
Browse files Browse the repository at this point in the history
  • Loading branch information
williamhorning committed May 4, 2024
1 parent c9367d7 commit c5a2ae3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/lightning/_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Deno.test('migrations', async t => {
});

await t.step('apply migrations', async t => {
await t.step('0.4-beta => 0.5', () => {
await t.step('0.5 -> 0.7', () => {
const result = apply_migrations([fivesevenbridges], migrations_five);

assertEquals(result, migrations_seven as [string, unknown][]);
Expand Down
4 changes: 2 additions & 2 deletions packages/lightning/src/migrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const fivesevenbridges = {
return [
id,
{
allow_editing: val.settings.editing_allowed ?? false,
allow_editing: val.settings?.editing_allowed ?? false,
channels: val.platforms.map(i => {
return {
id: i.channel,
Expand All @@ -31,7 +31,7 @@ export const fivesevenbridges = {
};
}),
id,
use_rawname: val.settings.realnames ?? false
use_rawname: val.settings?.realnames ?? false
}
];
}) as doc
Expand Down

0 comments on commit c5a2ae3

Please sign in to comment.