From 7f51610a6f6df4b10b5c262a3d3cca7a2ba55109 Mon Sep 17 00:00:00 2001 From: chenos Date: Mon, 19 Sep 2022 21:10:36 +0800 Subject: [PATCH] fix(plugin-system-settings): convert array to json (cherry picked from commit 73262aff5037603c1db1889ad34bf799218481ae) --- .../system-settings/src/collections/systemSettings.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/plugins/system-settings/src/collections/systemSettings.ts b/packages/plugins/system-settings/src/collections/systemSettings.ts index 828728fff..7c1a7f180 100644 --- a/packages/plugins/system-settings/src/collections/systemSettings.ts +++ b/packages/plugins/system-settings/src/collections/systemSettings.ts @@ -19,7 +19,7 @@ export default defineCollection({ { type: 'boolean', name: 'smsAuthEnabled', - defaultValue: false + defaultValue: false, }, { type: 'belongsTo', @@ -27,8 +27,9 @@ export default defineCollection({ target: 'attachments', }, { - type: 'array', + type: 'json', name: 'enabledLanguages', + defaultValue: [], }, { type: 'string', @@ -36,4 +37,3 @@ export default defineCollection({ }, ], }); -