Skip to content

Commit

Permalink
Return updated_at data for ocs registry (#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoMogg authored Jul 22, 2024
1 parent 4376986 commit ddcd2bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/web/pages/api/registry/entries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
id: row.id,
category: row.category,
content: row.content,
updated_at: row.updated_at,
created_at: row.created_at,
})),
pagination: {
total_records: totalRecordsCount,
Expand Down
1 change: 1 addition & 0 deletions apps/web/src/utils/ocsRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type ContentTable = {
category: string;
created_at: ColumnType<Date, string | undefined, never>;
is_featured: boolean;
updated_at: ColumnType<Date, string | undefined, never>;
content: JSONColumnType<OcsChallengeCard>;
};

Expand Down

0 comments on commit ddcd2bc

Please sign in to comment.