Fix chronology events
This commit is contained in:
parent
64bc76febb
commit
49c1e46fb8
|
@ -110,7 +110,6 @@ export const ChronologyEvents: CollectionConfig = buildVersionedCollectionConfig
|
||||||
{
|
{
|
||||||
name: fields.eventsSources,
|
name: fields.eventsSources,
|
||||||
type: "blocks",
|
type: "blocks",
|
||||||
maxRows: 1,
|
|
||||||
blocks: [urlBlock, collectibleBlock, pageBlock],
|
blocks: [urlBlock, collectibleBlock, pageBlock],
|
||||||
},
|
},
|
||||||
translatedFields({
|
translatedFields({
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { eventToEndpointEvent } from "./getAllEndpoint";
|
||||||
|
|
||||||
export const getByID: CollectionEndpoint = {
|
export const getByID: CollectionEndpoint = {
|
||||||
method: "get",
|
method: "get",
|
||||||
path: "/:id",
|
path: "/id/:id",
|
||||||
handler: async (req, res) => {
|
handler: async (req, res) => {
|
||||||
if (!req.user) {
|
if (!req.user) {
|
||||||
return res.status(403).send({
|
return res.status(403).send({
|
||||||
|
|
|
@ -380,5 +380,5 @@ export const payload = {
|
||||||
getChronologyEvents: async (): Promise<EndpointChronologyEvent[]> =>
|
getChronologyEvents: async (): Promise<EndpointChronologyEvent[]> =>
|
||||||
await (await request(payloadApiUrl(Collections.ChronologyEvents, `all`))).json(),
|
await (await request(payloadApiUrl(Collections.ChronologyEvents, `all`))).json(),
|
||||||
getChronologyEventByID: async (id: string): Promise<EndpointChronologyEvent> =>
|
getChronologyEventByID: async (id: string): Promise<EndpointChronologyEvent> =>
|
||||||
await (await request(payloadApiUrl(Collections.ChronologyEvents, id))).json(),
|
await (await request(payloadApiUrl(Collections.ChronologyEvents, `id/${id}`))).json(),
|
||||||
};
|
};
|
||||||
|
|
|
@ -88,7 +88,6 @@ html[data-theme="light"] {
|
||||||
}
|
}
|
||||||
|
|
||||||
.collapsible__toggle-wrap:has(
|
.collapsible__toggle-wrap:has(
|
||||||
.blocks-field__block-pill-collectibleBlock,
|
|
||||||
.blocks-field__block-pill-page,
|
.blocks-field__block-pill-page,
|
||||||
.blocks-field__block-pill-timestamp,
|
.blocks-field__block-pill-timestamp,
|
||||||
.blocks-field__block-pill-other,
|
.blocks-field__block-pill-other,
|
||||||
|
|
Loading…
Reference in New Issue