Paginated admin library & upgrade manifests (#351)
* feat: new page layout + endpoint * feat: non-parallel mass import * feat: paginated admin library * feat: lint and performance improvement * feat: library filter util * feat: link frontend features to backend * fix: lint * fix: small fixes * feat: bump torrential * fix: lint
This commit is contained in:
@@ -14,7 +14,7 @@ const labelNumberMap = {
|
||||
export function parseTaskLog(
|
||||
logStr?: string | undefined,
|
||||
): typeof TaskLog.infer {
|
||||
if (!logStr) return { message: "", timestamp: "", level: "" };
|
||||
if (!logStr) return { msg: "", time: "", level: "" };
|
||||
const log = JSON.parse(logStr);
|
||||
|
||||
if (typeof log.level === "number") {
|
||||
@@ -23,9 +23,5 @@ export function parseTaskLog(
|
||||
] as string;
|
||||
}
|
||||
|
||||
return {
|
||||
message: log.msg,
|
||||
timestamp: log.time,
|
||||
level: log.level,
|
||||
};
|
||||
return log;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user