story: Added view of own unlisted stories.
the build was successful

This commit is contained in:
2018-10-22 19:00:27 +02:00
parent d2194347fd
commit 824a8dae23
5 changed files with 39 additions and 4 deletions
+2 -2
View File
@@ -54,7 +54,7 @@ const storyApi = {
* @param {{author:string, category:string, tags:Tag[]|Tag, unlisted: boolean, open: boolean, earliestFictionalDate:Date|string, latestFictionalDate:Date|string, limit:number}} filter
* @returns {Promise<Story[]>}
*/
list(filter = {}) {
list(filter = {}, options = {}) {
if (filter.earliestFictionalDate != null && typeof(filter.earliestFictionalDate) !== "string") {
filter.earliestFictionalDate = filter.earliestFictionalDate.toISOString()
}
@@ -80,7 +80,7 @@ const storyApi = {
updatedDate
}
}
`, {filter}).then(({stories}) => {
`, {filter}, options).then(({stories}) => {
return stories.map(d => new Story(d.id, d.name, d.author, d.category, d.listed, d.open, d.createdDate, d.updatedDate, d.fictionalDate, d.tags))
})
},