Stringify json options

This commit is contained in:
rijkvanzanten
2021-05-07 11:48:36 -04:00
parent bdbe285089
commit fa86a06a7a

View File

@@ -61,7 +61,9 @@ export async function up(knex: Knex): Promise<void> {
...options,
};
await knex('directus_fields').update({ interface: after, options: newOptions }).where({ id });
await knex('directus_fields')
.update({ interface: after, options: JSON.stringify(newOptions) })
.where({ id });
}
} else {
await knex('directus_fields').update({ interface: after }).where({ interface: before });