fix(striker-ui-api): record only latest ss in fetch server screenshot

This commit is contained in:
Tsu-ba-me 2023-09-22 16:56:03 -04:00
parent 684906e0a2
commit 15c2b736ae

View File

@ -90,10 +90,10 @@ export const getServerDetail: RequestHandler<
return a.timestamp > b.timestamp ? 1 : -1;
});
stdoutVar(ssMetas, `Server screenshots: `);
const ssMetaLatest = ssMetas.pop();
stdoutVar(ssMetaLatest, `Latest server screenshot: `);
if (ssMetaLatest) {
const { name } = ssMetaLatest;