diff --git a/app/scenes/Collection/Collection.js b/app/scenes/Collection/Collection.js index 67717ba61..5d08074e7 100644 --- a/app/scenes/Collection/Collection.js +++ b/app/scenes/Collection/Collection.js @@ -58,8 +58,8 @@ class CollectionScene extends Component { this.props.ui.setActiveCollection(collection); this.collection = collection; await this.props.documents.fetchRecentlyModified({ - limit: 5, - collectionId: collection.id, + limit: 10, + collection: collection.id, }); } diff --git a/server/api/documents.js b/server/api/documents.js index f3f112827..9fe74459c 100644 --- a/server/api/documents.js +++ b/server/api/documents.js @@ -15,12 +15,12 @@ const authDocumentForUser = (ctx, document) => { const router = new Router(); router.post('documents.list', auth(), pagination(), async ctx => { - let { sort = 'updatedAt', direction, collectionId } = ctx.body; + let { sort = 'updatedAt', direction, collection } = ctx.body; if (direction !== 'ASC') direction = 'DESC'; const user = ctx.state.user; let where = { teamId: user.teamId }; - if (collectionId) where = { ...where, atlasId: collectionId }; + if (collection) where = { ...where, atlasId: collection }; const userId = user.id; const starredScope = { method: ['withStarred', userId] }; diff --git a/server/pages/Api.js b/server/pages/Api.js index e41b9b52a..b546f2520 100644 --- a/server/pages/Api.js +++ b/server/pages/Api.js @@ -128,9 +128,9 @@ export default function Pricing() {
To authenticate with Outline API, you can supply the API key as a
header (Authorization: Bearer YOUR_API_KEY) or as part of
- the payload using token parameter. If you're making{' '}
+ the payload using token parameter. If you’re making{' '}
GET requests, header based authentication is recommended
- so that your keys don't leak into logs.
+ so that your keys don’t leak into logs.
@@ -241,7 +241,7 @@ export default function Pricing() {
@@ -487,26 +497,6 @@ type MethodProps = {
children: React.Element<*>,
};
-const Method = (props: MethodProps) => {
- const children = React.Children.toArray(props.children);
- const description = children.find(child => child.type === Description);
- const apiArgs = children.find(child => child.type === Arguments);
-
- return (
-
- {props.children}
+
-
- {props.method} - {props.label}
- {`${process.env.URL}/api/${props.method}`}
-
+
+ {props.method} - {props.label}
+ {`${process.env.URL}/api/${props.method}`}
+