From 42b09d2b5b454442cc0de90900b55fa0a66efeae Mon Sep 17 00:00:00 2001 From: chenruilong Date: Tue, 19 Sep 2023 14:47:41 +0800 Subject: [PATCH] update uni-cms-articles --- collection/uni-cms-articles/collection.json | 4 ++-- collection/uni-cms-articles/schema.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/collection/uni-cms-articles/collection.json b/collection/uni-cms-articles/collection.json index 17f0337..d6fde80 100644 --- a/collection/uni-cms-articles/collection.json +++ b/collection/uni-cms-articles/collection.json @@ -124,11 +124,11 @@ "foreignKey": "uni-id-users._id" }, "thumbnail": { - "bsonType": "string", + "bsonType": "array", "title": "封面大图", "description": "缩略图地址", "label": "封面大图", - "trim": "both" + "defaultValue": [] }, "publish_date": { "bsonType": "timestamp", diff --git a/collection/uni-cms-articles/schema.json b/collection/uni-cms-articles/schema.json index d4f2243..60ef8cc 100644 --- a/collection/uni-cms-articles/schema.json +++ b/collection/uni-cms-articles/schema.json @@ -123,11 +123,11 @@ "foreignKey": "uni-id-users._id" }, "thumbnail": { - "bsonType": "string", + "bsonType": "array", "title": "封面大图", "description": "缩略图地址", "label": "封面大图", - "trim": "both" + "defaultValue": [] }, "publish_date": { "bsonType": "timestamp",