AppSidebar -> MainSidebar, drizzle was using expires_at instead of
created_at for some reason
This commit is contained in:
parent
5a85d72a51
commit
ac7c4f77fb
4 changed files with 3 additions and 4 deletions
|
|
@ -22,7 +22,6 @@
|
||||||
|
|
||||||
import { overview_data } from '$lib/state.svelte';
|
import { overview_data } from '$lib/state.svelte';
|
||||||
|
|
||||||
// Props for the member sidebar.
|
|
||||||
let {
|
let {
|
||||||
open = $bindable(true),
|
open = $bindable(true),
|
||||||
members = $bindable<OverviewUser[]>([]),
|
members = $bindable<OverviewUser[]>([]),
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@ export const invite = sqliteTable('invite', {
|
||||||
creatorId: text('creator_id')
|
creatorId: text('creator_id')
|
||||||
.notNull()
|
.notNull()
|
||||||
.references(() => user.id),
|
.references(() => user.id),
|
||||||
createdAt: integer('expires_at', { mode: 'timestamp' }).notNull(),
|
createdAt: integer('created_at', { mode: 'timestamp' }).notNull(),
|
||||||
uses: text('uses', { mode: 'json' }).default([]).notNull(), // users who used the invite. can repeat,
|
uses: text('uses', { mode: 'json' }).default([]).notNull(), // users who used the invite. can repeat,
|
||||||
maxUses: integer('max_uses')
|
maxUses: integer('max_uses')
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
statuses
|
statuses
|
||||||
} from '$lib';
|
} from '$lib';
|
||||||
import type { PageServerData } from './$types';
|
import type { PageServerData } from './$types';
|
||||||
import AppSidebar from '$lib/components/app-sidebar.svelte';
|
import MainSidebar from '$lib/components/main-sidebar.svelte';
|
||||||
import * as Sidebar from '$lib/components/ui/sidebar/index.js';
|
import * as Sidebar from '$lib/components/ui/sidebar/index.js';
|
||||||
|
|
||||||
import { onMount } from 'svelte';
|
import { onMount } from 'svelte';
|
||||||
|
|
@ -216,7 +216,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Sidebar.Provider>
|
<Sidebar.Provider>
|
||||||
<AppSidebar
|
<MainSidebar
|
||||||
psd={data}
|
psd={data}
|
||||||
bind:subPage={currentSubPageID}
|
bind:subPage={currentSubPageID}
|
||||||
bind:currentPage={currentPageID}
|
bind:currentPage={currentPageID}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue