From e3856c77d47cca9f648174c55d326139f2ef0b83 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Sun, 5 Dec 2021 13:32:10 +0100 Subject: [PATCH] chore(api): Deprecate findUser from user store. Is the same as getUser --- api/src/stores/user.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/src/stores/user.ts b/api/src/stores/user.ts index 41bc2a2..2a942c1 100644 --- a/api/src/stores/user.ts +++ b/api/src/stores/user.ts @@ -20,6 +20,10 @@ export const useUserStore = defineStore({ getters: {}, actions: { + /** + * @deprecated Use getUser instead, will be removed with first beta release + * @todo Remove with first beta release + */ findUser(userid: string) { return this.users.find((user) => user.userid === userid); },