egg-born-module-a-base-sync
Advanced tools
Comparing version 1.1.8 to 1.1.9
@@ -119,6 +119,7 @@ const require3 = require('require3'); | ||
const _atomClass = await ctx.meta.atomClass.atomClass(atomClass); | ||
// get | ||
const item = await this._get({ | ||
atom: { | ||
id: key.atomId, | ||
tableName: _atomClass.tableName, | ||
tableName: _atomClass.tableNameFull || _atomClass.tableName, | ||
}, | ||
@@ -160,5 +161,14 @@ user, | ||
} | ||
// tableName | ||
let tableName = ''; | ||
if (_atomClass) { | ||
if (options.mode === 'search') { | ||
tableName = _atomClass.tableNameFull || _atomClass.tableName; | ||
} else { | ||
tableName = _atomClass.tableName; | ||
} | ||
} | ||
// select | ||
const items = await this._list({ | ||
tableName: _atomClass ? _atomClass.tableName : '', | ||
tableName, | ||
options, | ||
@@ -165,0 +175,0 @@ user, |
@@ -151,2 +151,3 @@ const _modulesLocales = {}; | ||
tableName: _atom.tableName || '', | ||
tableNameFull: _atom.tableNameFull, | ||
public: _atom.public ? 1 : 0, | ||
@@ -153,0 +154,0 @@ flow: _atom.flow ? 1 : 0, |
{ | ||
"name": "egg-born-module-a-base-sync", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"title": "Base", | ||
@@ -5,0 +5,0 @@ "eggBornModule": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
768373
11638