mirror of
https://github.com/Fabio286/antares.git
synced 2025-02-18 20:50:48 +01:00
fix: display content of BLOB fields if not binary, fixes #628
This commit is contained in:
parent
3104847b92
commit
f831fcd442
@ -589,7 +589,9 @@ const typeFormat = (val: string | number | Date | number[], type: string, precis
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (BLOB.includes(type)) {
|
if (BLOB.includes(type)) {
|
||||||
const buff = Buffer.from(val as string);
|
if (typeof val === 'string') return val;
|
||||||
|
|
||||||
|
const buff = Buffer.from(val as unknown as ArrayBuffer);
|
||||||
if (!buff.length) return '';
|
if (!buff.length) return '';
|
||||||
|
|
||||||
const hex = buff.toString('hex').substring(0, 8).toUpperCase();
|
const hex = buff.toString('hex').substring(0, 8).toUpperCase();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user