Skip to content

Commit

Permalink
added updatedAt prop
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalikmay committed Aug 15, 2024
1 parent 742271a commit a1bbab7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "seobot",
"version": "1.0.8",
"version": "1.0.9",
"description": "Client library for the SEObot API",
"main": "dist/index.js",
"files": [
Expand Down
1 change: 1 addition & 0 deletions src/blog/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export class BlogClient {
image: short.i,
readingTime: short.rt,
createdAt: short.cr,
updatedAt: short.up,
category: short.c
? {
title: short.c.t,
Expand Down
1 change: 1 addition & 0 deletions src/types/blog/article.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export interface IArticle {
published: boolean;
publishedAt: string;
createdAt: string;
updatedAt: string;
relatedPosts: IRelatedPost[];
image: string;
}
2 changes: 2 additions & 0 deletions src/types/blog/articleIndex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export interface IArticleIndexCompressed {
i: string; // image
rt: number; // readingTime
cr: string; // createdAt
up: string; // updatedAt
c?: { t: string; }; // category
tg?: { t: string; }[]; // tags
}
Expand All @@ -18,6 +19,7 @@ export interface IArticleIndex {
image: string;
readingTime: number,
createdAt: string;
updatedAt: string;
category: { title: string; slug: string; } | null;
tags: { title: string; slug: string; }[];
}

0 comments on commit a1bbab7

Please sign in to comment.