get all accessible recipes

This commit is contained in:
Mikayla Dobson
2022-12-17 14:22:24 -06:00
parent 9a43f58ee3
commit 6c3f835b25
10 changed files with 54 additions and 18 deletions

View File

@@ -79,9 +79,9 @@ export default class UserCtl {
}
}
async getPendingFriendRequests(senderid: string | number) {
async getPendingFriendRequests(recipient: string | number) {
try {
const { ok, code, result } = await UserInstance.getPendingFriendRequests(senderid);
const { ok, code, result } = await UserInstance.getPendingFriendRequests(recipient);
return new ControllerResponse(code, result);
} catch (e: any) {
throw new Error(e);
@@ -102,7 +102,7 @@ export default class UserCtl {
async updateFriendship(id: number | string, userid: number | string, data: { active: boolean, pending: boolean, dateterminated?: string }) {
try {
const { ok, code, result } = await UserInstance.updateFriendship(id, userid, data);
const { code, result } = await UserInstance.updateFriendship(id, userid, data);
return new ControllerResponse(code, result);
} catch (e: any) {
throw new Error(e);