We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c509aac commit f76e1c9Copy full SHA for f76e1c9
velog-backend/src/router/series/series.ctrl.js
@@ -196,6 +196,10 @@ export const listSeries = async (ctx: Context) => {
196
],
197
order: [['updated_at', 'DESC']],
198
});
199
+ if (seriesList.length === 0) {
200
+ ctx.body = [];
201
+ return;
202
+ }
203
const counts = await getSeriesPostCountList(seriesList.map(series => series.id));
204
const flatData = {};
205
counts.forEach((c) => {
0 commit comments