Fixup for bug with generated type
This commit is contained in:
parent
63e00a9b9d
commit
8a819de41e
|
@ -1,5 +1,6 @@
|
|||
import { Where } from "payload/types";
|
||||
import { sectionBlock } from "../../blocks/sectionBlock";
|
||||
import { transcriptBlock } from "../../blocks/transcriptBlock";
|
||||
import { QuickFilters, publishStatusFilters } from "../../components/QuickFilters";
|
||||
import { CollectionGroups, Collections, PageType } from "../../constants";
|
||||
import { backPropagationField } from "../../fields/backPropagationField/backPropagationField";
|
||||
|
@ -121,7 +122,7 @@ export const Pages = buildVersionedCollectionConfig({
|
|||
images: true,
|
||||
inlines: true,
|
||||
alignment: true,
|
||||
blocks: [sectionBlock],
|
||||
blocks: [sectionBlock, transcriptBlock],
|
||||
links: true,
|
||||
lists: true,
|
||||
}),
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { sectionBlock } from "../../blocks/sectionBlock";
|
||||
import { transcriptBlock } from "../../blocks/transcriptBlock";
|
||||
import { QuickFilters, publishStatusFilters } from "../../components/QuickFilters";
|
||||
import { CollectionGroups, Collections, KeysTypes } from "../../constants";
|
||||
import { imageField } from "../../fields/imageField/imageField";
|
||||
|
@ -100,7 +101,7 @@ export const Posts = buildVersionedCollectionConfig({
|
|||
images: true,
|
||||
inlines: true,
|
||||
alignment: true,
|
||||
blocks: [sectionBlock],
|
||||
blocks: [sectionBlock, transcriptBlock],
|
||||
links: true,
|
||||
lists: true,
|
||||
}),
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { CueBlock, LineBlock, SectionBlock, TranscriptBlock } from "./types/collections";
|
||||
import type { CueBlock, LineBlock, SectionBlock, TranscriptBlock } from "./types/collections";
|
||||
|
||||
// END MOCKING SECTION
|
||||
|
||||
|
@ -243,7 +243,20 @@ export const isBlockNodeTranscriptBlock = (
|
|||
|
||||
/* BLOCKS */
|
||||
|
||||
/* TODO: TO BE REMOVED WHEN https://github.com/payloadcms/payload/issues/5216 is closed */
|
||||
export interface CueBlock {
|
||||
id?: string | null;
|
||||
blockName?: string | null;
|
||||
}
|
||||
|
||||
export interface LineBlock {
|
||||
id?: string | null;
|
||||
blockName?: string | null;
|
||||
}
|
||||
|
||||
export interface GenericBlock {
|
||||
id?: string | null;
|
||||
blockName?: string | null;
|
||||
content: unknown;
|
||||
blockType: string;
|
||||
}
|
||||
|
|
|
@ -77,7 +77,7 @@ export default buildConfig({
|
|||
Keys,
|
||||
Tags,
|
||||
TagsGroups,
|
||||
Images
|
||||
Images,
|
||||
],
|
||||
db: mongooseAdapter({
|
||||
url: process.env.MONGODB_URI ?? "mongodb://mongo:27017/payload",
|
||||
|
|
Loading…
Reference in New Issue