mirror of
https://github.com/directus/directus.git
synced 2026-02-11 17:24:56 -05:00
Stringify json options
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user