Bläddra i källkod

check is primary key

nameczz 4 år sedan
förälder
incheckning
f289fafb79
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      server/src/collections/collections.service.ts

+ 1 - 1
server/src/collections/collections.service.ts

@@ -112,7 +112,7 @@ export class CollectionsService {
         });
         const autoID = collectionInfo.schema.fields.find(
           (v) => v.is_primary_key === true,
-        ).autoID;
+        )?.autoID;
 
         data.push({
           collection_name: name,