AppSidebar -> MainSidebar, drizzle was using expires_at instead of

created_at for some reason
This commit is contained in:
Soph :3 2026-01-17 16:46:52 +02:00
parent 5a85d72a51
commit ac7c4f77fb
4 changed files with 3 additions and 4 deletions

View file

@ -22,7 +22,6 @@
import { overview_data } from '$lib/state.svelte';
// Props for the member sidebar.
let {
open = $bindable(true),
members = $bindable<OverviewUser[]>([]),

View file

@ -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')
});

View file

@ -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}