fix: shared link add to album (#27063)

This commit is contained in:
Jason Rasmussen
2026-03-20 14:14:07 -04:00
committed by GitHub
parent 644f705be1
commit 813d684aaa
13 changed files with 230 additions and 22 deletions
@@ -0,0 +1,13 @@
import { Kysely, sql } from 'kysely';
export async function up(db: Kysely<any>): Promise<void> {
await sql`
DELETE FROM "shared_link_asset"
USING "shared_link"
WHERE "shared_link_asset"."sharedLinkId" = "shared_link"."id" AND "shared_link"."type" = 'ALBUM';
`.execute(db);
}
export async function down(): Promise<void> {
// noop
}