Need to parse the fields settings to make the date-format available in parsing, and set sql_mode in docker to make dates work even if they are not strict mysql-dates
This commit is contained in:
parent
7744f5dc29
commit
300f0977f6
3 changed files with 8 additions and 1 deletions
|
@ -10,6 +10,7 @@ services:
|
||||||
- MYSQL_PASSWORD=mailtrain
|
- MYSQL_PASSWORD=mailtrain
|
||||||
volumes:
|
volumes:
|
||||||
- mysql-data:/var/lib/mysql
|
- mysql-data:/var/lib/mysql
|
||||||
|
command: mysqld --sql_mode=""
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:5
|
image: redis:5
|
||||||
|
|
|
@ -10,6 +10,7 @@ services:
|
||||||
- MYSQL_PASSWORD=mailtrain
|
- MYSQL_PASSWORD=mailtrain
|
||||||
volumes:
|
volumes:
|
||||||
- mysql-data:/var/lib/mysql
|
- mysql-data:/var/lib/mysql
|
||||||
|
command: mysqld --sql_mode=""
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:5
|
image: redis:5
|
||||||
|
|
|
@ -310,7 +310,12 @@ async function listTx(tx, listId) {
|
||||||
async function list(context, listId) {
|
async function list(context, listId) {
|
||||||
return await knex.transaction(async tx => {
|
return await knex.transaction(async tx => {
|
||||||
await shares.enforceEntityPermissionTx(tx, context, 'list', listId, ['viewFields']);
|
await shares.enforceEntityPermissionTx(tx, context, 'list', listId, ['viewFields']);
|
||||||
return await listTx(tx, listId);
|
const flds = await listTx(tx, listId);
|
||||||
|
|
||||||
|
return flds.map(fld => {
|
||||||
|
fld.settings = JSON.parse(fld.settings);
|
||||||
|
return fld;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue