Skip to content

Commit a1bbab7

Browse files
committed
added updatedAt prop
1 parent 742271a commit a1bbab7

4 files changed

Lines changed: 5 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "seobot",
3-
"version": "1.0.8",
3+
"version": "1.0.9",
44
"description": "Client library for the SEObot API",
55
"main": "dist/index.js",
66
"files": [

src/blog/client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export class BlogClient {
1818
image: short.i,
1919
readingTime: short.rt,
2020
createdAt: short.cr,
21+
updatedAt: short.up,
2122
category: short.c
2223
? {
2324
title: short.c.t,

src/types/blog/article.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export interface IArticle {
1717
published: boolean;
1818
publishedAt: string;
1919
createdAt: string;
20+
updatedAt: string;
2021
relatedPosts: IRelatedPost[];
2122
image: string;
2223
}

src/types/blog/articleIndex.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export interface IArticleIndexCompressed {
66
i: string; // image
77
rt: number; // readingTime
88
cr: string; // createdAt
9+
up: string; // updatedAt
910
c?: { t: string; }; // category
1011
tg?: { t: string; }[]; // tags
1112
}
@@ -18,6 +19,7 @@ export interface IArticleIndex {
1819
image: string;
1920
readingTime: number,
2021
createdAt: string;
22+
updatedAt: string;
2123
category: { title: string; slug: string; } | null;
2224
tags: { title: string; slug: string; }[];
2325
}

0 commit comments

Comments
 (0)