aboutsummaryrefslogtreecommitdiff
path: root/packages/server/src/routes/api
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-08-08 22:40:54 +0200
committerHampusM <hampus@hampusmat.com>2021-08-08 22:40:54 +0200
commite5f987513a3a19c536acd6b4e80e4c0dbbfd87d6 (patch)
tree5f334a9edd872df4e1790b3165f75f4c3cf06b58 /packages/server/src/routes/api
parentf2d55a9f05f5df7960d7f6dd37d1ef96c762d65a (diff)
Added a count query param for the tree history API endpoint
Diffstat (limited to 'packages/server/src/routes/api')
-rw-r--r--packages/server/src/routes/api/v1/repo/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/server/src/routes/api/v1/repo/index.ts b/packages/server/src/routes/api/v1/repo/index.ts
index 3b115d4..2221171 100644
--- a/packages/server/src/routes/api/v1/repo/index.ts
+++ b/packages/server/src/routes/api/v1/repo/index.ts
@@ -125,7 +125,7 @@ export default function(fastify: FastifyInstance, opts: FastifyPluginOptions, do
return;
}
- const history = await tree_entry.history();
+ const history = await tree_entry.history(Number(req.query.count));
reply.send({ data: await Promise.all(history.map(commitMap)) });
}