Merge branch 'dev' into 6952-productorItemPDF
gitea/salix/pipeline/pr-dev This commit looks good
Details
gitea/salix/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
commit
420daeba9f
|
@ -0,0 +1 @@
|
||||||
|
ALTER TABLE vn.greuge CHANGE Id id int(10) unsigned auto_increment NOT NULL;
|
|
@ -146,7 +146,7 @@ module.exports = Self => {
|
||||||
});
|
});
|
||||||
filter = mergeFilters(ctx.args.filter, {where});
|
filter = mergeFilters(ctx.args.filter, {where});
|
||||||
const userId = ctx.req.accessToken.userId;
|
const userId = ctx.req.accessToken.userId;
|
||||||
const isSupplier = await Self.app.models.Supplier.findById(userId, options);
|
const isSupplier = await Self.app.models.Supplier.findById(userId, myOptions);
|
||||||
if (isSupplier) {
|
if (isSupplier) {
|
||||||
if (!filter.where) filter.where = {};
|
if (!filter.where) filter.where = {};
|
||||||
filter.where[`e.supplierFk`] = ctx.req.accessToken.userId;
|
filter.where[`e.supplierFk`] = ctx.req.accessToken.userId;
|
||||||
|
|
Loading…
Reference in New Issue