vriteio / vrite

Open-source developer content platform
https://vrite.io
Other
1.63k stars 65 forks source link

How do you use the custom data property? #55

Closed kcoderhtml closed 9 months ago

kcoderhtml commented 9 months ago
async function createContentPiece(title: string, description: string, body: string, scrappyId: string, date: any) {
    const contentPiece = await vrite.contentPieces.create({
        contentGroupId: process.env.VRITE_CONTENT_GROUP_ID || '',
        title: title,
        description: description,
        content: body,
        tags: [],
        customData: { 
            id: scrappyId,
         },
        members: ["64974cb888e8beebeb2c925f"],
        date: date,
    });
    return contentPiece;
};

In my code, no matter what arrangement I try with the custom data field nothing is showing up in the editor; also no errors are being logged either.

areknawo commented 9 months ago

Seems like a bug. Will check.

areknawo commented 9 months ago

Should be fixed (server-side) now in v0.4.0.