Fix user id for dis levels (#44)

This commit is contained in:
AceDataCloud committed 2024-05-14 13:40:48 +00:00
1 parent 958a530add
commit 3aa03da0d7
3 files changed
+10 -1

No files matched your search

@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "add user id support for levels",
"packageName": "@acedatacloud/nexior",
"email": "germey@acedata.cloud",
"dependentChangeType": "patch"
}
+1
View File
@@ -47,6 +47,7 @@ class DistributionStatusService {
export const distributionStatusOperator = new DistributionStatusService();
export interface IDistributionLevelQuery {
user_id?: string;
limit?: number;
}
+2 -1
View File
@@ -318,7 +318,8 @@ export default defineComponent({
},
async onFetchDistributionLevels() {
const { data } = await distributionLevelOperator.getAll({
limit: 20
limit: 20,
user_id: this.$store.getters.user.id
});
this.distributionLevels = data.items;
},