|
@@ -83,11 +83,13 @@ module.exports = app => {
|
|
|
* @returns {Promise<void>}
|
|
|
*/
|
|
|
async saveTenderInfo(tenderId, data) {
|
|
|
+ console.log(data);
|
|
|
for (const di in data) {
|
|
|
- if (parseInfo.indexOf(di) >= 0) {
|
|
|
+ if (parseInfo.indexOf(di) >= 0 || arrayInfo.indexOf(di) >= 0) {
|
|
|
data[di] = JSON.stringify(data[di]);
|
|
|
}
|
|
|
}
|
|
|
+ console.log(data);
|
|
|
await this.db.update(this.tableName, data, {where: {tid: tenderId}});
|
|
|
}
|
|
|
|