fix(striker-ui-api): record only latest ss in fetch server screenshot
This commit is contained in:
parent
684906e0a2
commit
15c2b736ae
@ -90,10 +90,10 @@ export const getServerDetail: RequestHandler<
|
|||||||
return a.timestamp > b.timestamp ? 1 : -1;
|
return a.timestamp > b.timestamp ? 1 : -1;
|
||||||
});
|
});
|
||||||
|
|
||||||
stdoutVar(ssMetas, `Server screenshots: `);
|
|
||||||
|
|
||||||
const ssMetaLatest = ssMetas.pop();
|
const ssMetaLatest = ssMetas.pop();
|
||||||
|
|
||||||
|
stdoutVar(ssMetaLatest, `Latest server screenshot: `);
|
||||||
|
|
||||||
if (ssMetaLatest) {
|
if (ssMetaLatest) {
|
||||||
const { name } = ssMetaLatest;
|
const { name } = ssMetaLatest;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user