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