* chore: scaffolds out fix for postgres issues with custom ids in versions * fix(db-postgres): queryDrafts returns undefined doc.id * chore(db-postgres): fix build * fix: removes extra custom id field from versions buildCollectionFields * chore: comments test/versions seeding back in * fix buildCollectionFields version group fields * fix: id field can be edited after saving a document with custom ids * chore: updates versions custom ID test --------- Co-authored-by: PatrikKozak <patrik@payloadcms.com>
26 lines
741 B
TypeScript
26 lines
741 B
TypeScript
export const autosaveCollectionSlug = 'autosave-posts' as const
|
|
|
|
export const customIDSlug = 'custom-ids' as const
|
|
|
|
export const draftCollectionSlug = 'draft-posts' as const
|
|
|
|
export const postCollectionSlug = 'posts' as const
|
|
|
|
export const versionCollectionSlug = 'version-posts' as const
|
|
|
|
export const disablePublishSlug = 'disable-publish' as const
|
|
|
|
export const disablePublishGlobalSlug = 'disable-publish-global' as const
|
|
|
|
export const collectionSlugs = [
|
|
autosaveCollectionSlug,
|
|
draftCollectionSlug,
|
|
postCollectionSlug,
|
|
versionCollectionSlug,
|
|
]
|
|
|
|
export const autoSaveGlobalSlug = 'autosave-global' as const
|
|
export const draftGlobalSlug = 'draft-global' as const
|
|
|
|
export const globalSlugs = [autoSaveGlobalSlug, draftGlobalSlug]
|