From e8220dbece99e8ffea597664e8d595589dfb9ecb Mon Sep 17 00:00:00 2001 From: baozhoutao Date: Sun, 10 Mar 2024 10:52:05 +0800 Subject: [PATCH] =?UTF-8?q?standard=20space=E6=B7=BB=E5=8A=A0=20objectMixi?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/standard-space/package.service.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/services/standard-space/package.service.js b/services/standard-space/package.service.js index 2fca64af38..2525e999d4 100644 --- a/services/standard-space/package.service.js +++ b/services/standard-space/package.service.js @@ -2,13 +2,14 @@ * @Author: sunhaolin@hotoa.com * @Date: 2022-12-02 13:17:06 * @LastEditors: baozhoutao@steedos.com - * @LastEditTime: 2024-03-08 16:50:58 + * @LastEditTime: 2024-03-10 10:47:40 * @Description: */ "use strict"; const project = require('./package.json'); const packageName = project.name; const packageLoader = require('@steedos/service-meteor-package-loader'); +const objectMixin = require('@steedos/service-object-mixin') const objectql = require('@steedos/objectql'); const { MongoClient } = require('mongodb'); const _ = require('lodash') @@ -24,7 +25,7 @@ const actions = require('./src/actions') module.exports = { name: packageName, namespace: "steedos", - mixins: [packageLoader], + mixins: [packageLoader, objectMixin], /** * Settings */ @@ -158,9 +159,7 @@ module.exports = { /** * Methods */ - methods: { - ...methods - }, + methods: methods, /** * Service created lifecycle event handler