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';
|
||||
|
||||
// Props for the member sidebar.
|
||||
let {
|
||||
open = $bindable(true),
|
||||
members = $bindable<OverviewUser[]>([]),
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ export const invite = sqliteTable('invite', {
|
|||
creatorId: text('creator_id')
|
||||
.notNull()
|
||||
.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,
|
||||
maxUses: integer('max_uses')
|
||||
});
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
statuses
|
||||
} from '$lib';
|
||||
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 { onMount } from 'svelte';
|
||||
|
|
@ -216,7 +216,7 @@
|
|||
</script>
|
||||
|
||||
<Sidebar.Provider>
|
||||
<AppSidebar
|
||||
<MainSidebar
|
||||
psd={data}
|
||||
bind:subPage={currentSubPageID}
|
||||
bind:currentPage={currentPageID}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue