Skip to content
This repository was archived by the owner on Oct 30, 2023. It is now read-only.

Commit 044debc

Browse files
committed
set userType condition in vshopdata filter
1 parent dd1b8a0 commit 044debc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uploader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ async function findVirtualShopData (rconnObj, rdb, rtable, username, userObj) {
196196
return new Promise(async (resolve, reject) => {
197197
console.log('================findVal=========', username)
198198
rethink.db(rdb).table(rtable)
199-
.filter({'esUser': username})
199+
.filter({'esUser': username,'userType': 'supplier'})
200200
.run(rconnObj, function (err, cursor) {
201201
if (err) {
202202
reject(err)

0 commit comments

Comments
 (0)