Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 89cb123

Browse files
author
Ray Arayilakath
committed
Refactor Board Class
1 parent 0baa3ca commit 89cb123

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/classes/Board.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ export default class Board {
5050
query BoardPosts($slug: String!, $after: String!, $count: Int!, $order: String!) {
5151
boardBySlug(slug: $slug) {
5252
posts(count: $count, after: $after, order: $order) {
53-
items { ${constants.postAttributes} }
53+
items {
54+
id
55+
title
56+
preview(length: ${global.initVariables.markdown.length || 150}, removeMarkdown: ${global.initVariables.markdown.removeMarkdown || true})
57+
}
5458
pageInfo {
5559
nextCursor
5660
}

0 commit comments

Comments
 (0)