chore(api): Deprecate findUser from user store.

Is the same as getUser
This commit is contained in:
Ferdinand Thiessen 2021-12-05 13:32:10 +01:00
parent 83f32ea82a
commit e3856c77d4
1 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,10 @@ export const useUserStore = defineStore({
getters: {}, getters: {},
actions: { actions: {
/**
* @deprecated Use getUser instead, will be removed with first beta release
* @todo Remove with first beta release
*/
findUser(userid: string) { findUser(userid: string) {
return this.users.find((user) => user.userid === userid); return this.users.find((user) => user.userid === userid);
}, },