mirror of
				https://github.com/Fabio286/antares.git
				synced 2025-06-05 21:59:22 +02:00 
			
		
		
		
	fix: display content of BLOB fields if not binary, fixes #628
This commit is contained in:
		| @@ -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(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user