better error expression, update gradido node default version, update inspector, allow phpmyadmin importing big sql files

This commit is contained in:
einhornimmond 2025-11-19 13:54:48 +01:00
parent 12e61891ba
commit 5f7383a486
4 changed files with 20 additions and 19 deletions

View File

@ -84,7 +84,7 @@ export const configSchema = v.object({
v.string('The version of the DLT node server, for example: 0.9.0'),
v.regex(/^\d+\.\d+\.\d+$/),
),
'0.9.1',
'0.9.2',
),
DLT_GRADIDO_NODE_SERVER_HOME_FOLDER: v.optional(
v.string('The home folder for the gradido dlt node server'),

View File

@ -104,6 +104,7 @@ export async function loadTransactions(
return result.map((row: any) => {
// console.log(row)
try {
// check for consistent data beforehand
const userCreatedAt = new Date(row.user.createdAt)
const linkedUserCreatedAd = new Date(row.linkedUser.createdAt)
@ -120,7 +121,6 @@ export async function loadTransactions(
if (row.transaction.typeId === TransactionTypeId.SEND) {
amount = amount.mul(new GradidoUnit(-1))
}
try {
return v.parse(transactionDbSchema, {
...row.transaction,
transactionLinkCode: row.transactionLink ? row.transactionLink.code : null,
@ -128,8 +128,8 @@ export async function loadTransactions(
linkedUser: row.linkedUser,
})
} catch (e) {
if (e instanceof v.ValiError) {
logger.error(`table row: ${JSON.stringify(row, null, 2)}`)
if (e instanceof v.ValiError) {
logger.error(v.flatten(e.issues))
}
throw e

View File

@ -199,6 +199,7 @@ services:
- debug
environment:
- PMA_ARBITRARY=1
- UPLOAD_LIMIT=200M
#restart: always
ports:
- 8074:80

@ -1 +1 @@
Subproject commit 36045150da1d6c9d9a568d801f327cee40176646
Subproject commit 0c14b7eea29b8911cbe3cb303f5b0b61ce9bf6f4