change user to uuid
This commit is contained in:
parent
50cbf94ee5
commit
4c5d132de8
17 changed files with 86 additions and 93 deletions
|
@ -14,7 +14,7 @@ export const useMemberStore = defineStore("member", {
|
|||
members: [] as Array<MemberViewModel & { tab_pos: number }>,
|
||||
totalCount: 0 as number,
|
||||
loading: "loading" as "loading" | "fetched" | "failed",
|
||||
activeMember: null as number | null,
|
||||
activeMember: null as string | null,
|
||||
activeMemberObj: null as MemberViewModel | null,
|
||||
activeMemberStatistics: null as MemberStatisticsViewModel | null,
|
||||
loadingActive: "loading" as "loading" | "fetched" | "failed",
|
||||
|
@ -50,7 +50,7 @@ export const useMemberStore = defineStore("member", {
|
|||
return { ...res, data: res.data.members };
|
||||
});
|
||||
},
|
||||
async getMembersByIds(ids: Array<number>): Promise<AxiosResponse<any, any>> {
|
||||
async getMembersByIds(ids: Array<string>): Promise<AxiosResponse<any, any>> {
|
||||
return await http.get(`/admin/member?ids=${ids.join(",")}&noLimit=true`).then((res) => {
|
||||
return { ...res, data: res.data.members };
|
||||
});
|
||||
|
@ -72,7 +72,7 @@ export const useMemberStore = defineStore("member", {
|
|||
this.loadingActive = "failed";
|
||||
});
|
||||
},
|
||||
fetchMemberById(id: number) {
|
||||
fetchMemberById(id: string) {
|
||||
return http.get(`/admin/member/${id}`);
|
||||
},
|
||||
fetchMemberStatisticsByActiveId() {
|
||||
|
@ -83,7 +83,7 @@ export const useMemberStore = defineStore("member", {
|
|||
})
|
||||
.catch((err) => {});
|
||||
},
|
||||
fetchMemberStatisticsById(id: number) {
|
||||
fetchMemberStatisticsById(id: string) {
|
||||
return http.get(`/admin/member/${id}/statistics`);
|
||||
},
|
||||
async createMember(member: CreateMemberViewModel): Promise<AxiosResponse<any, any>> {
|
||||
|
|
|
@ -12,8 +12,8 @@ export const useNewsletterRecipientsStore = defineStore("newsletterRecipients",
|
|||
state: () => {
|
||||
return {
|
||||
initialized: false as boolean,
|
||||
recipients: [] as Array<number>,
|
||||
origin: [] as Array<number>,
|
||||
recipients: [] as Array<string>,
|
||||
origin: [] as Array<string>,
|
||||
loading: "loading" as "loading" | "fetched" | "failed",
|
||||
syncingNewsletterRecipients: "synced" as "synced" | "syncing" | "detectedChanges" | "failed",
|
||||
};
|
||||
|
|
|
@ -22,8 +22,8 @@ export const useProtocolPresenceStore = defineStore("protocolPresence", {
|
|||
getters: {
|
||||
detectedChangeProtocolPresence: (state) =>
|
||||
!isEqual(
|
||||
state.origin.sort((a: ProtocolPresenceViewModel, b: ProtocolPresenceViewModel) => a.memberId - b.memberId),
|
||||
state.presence.sort((a: ProtocolPresenceViewModel, b: ProtocolPresenceViewModel) => a.memberId - b.memberId)
|
||||
state.origin, //.sort((a: ProtocolPresenceViewModel, b: ProtocolPresenceViewModel) => a.memberId - b.memberId),
|
||||
state.presence //.sort((a: ProtocolPresenceViewModel, b: ProtocolPresenceViewModel) => a.memberId - b.memberId)
|
||||
) && state.syncingProtocolPresence != "syncing",
|
||||
},
|
||||
actions: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue