mirror of https://github.com/Fabio286/antares.git
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)) {
|
||||
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 '';
|
||||
|
||||
const hex = buff.toString('hex').substring(0, 8).toUpperCase();
|
||||
|
|
Loading…
Reference in New Issue