Commit b8ce5ee2 authored by Guillaume Lebigot's avatar Guillaume Lebigot

I have no idea how this worked before O_O

parent b8d306f1
Pipeline #12074 passed with stage
in 1 minute and 8 seconds
......@@ -14,7 +14,7 @@ export function formatTagList(tagList: DBTag[], from: number, count: number): Ta
infos: {
count: count,
from: +from,
to: +from + +tagList.length
to: +from + +count
},
content: tagList
};
......@@ -23,8 +23,7 @@ export function formatTagList(tagList: DBTag[], from: number, count: number): Ta
export async function getTags(params: TagParams) {
try {
const tags = await selectTags(params);
return formatTagList(tags.slice(params.from || 0,
(params.from || 0) + params.size || 999999999), params.from || 0, tags.length);
return formatTagList(tags, +params.from, tags.length);
} catch(err) {
sentry.addErrorInfo('args', JSON.stringify(arguments, null, 2));
sentry.error(err);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment