Skip to content

Commit

Permalink
Change name
Browse files Browse the repository at this point in the history
  • Loading branch information
reginaldbondoc committed Dec 7, 2022
1 parent d99e21a commit 1212b5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/pages/api/workspace/getWorkspaces.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import SecurityClient from "~/utilities/SecurityClient";

interface Workspaces {
interface Workspace {
__v: number;
_id: string;
name: string;
Expand All @@ -19,7 +19,7 @@ const getWorkspaces = () => {
},
}).then(async (res) => {
if (res?.status == 200) {
const data = (await res.json()) as unknown as { workspaces: Workspaces[] };
const data = (await res.json()) as unknown as { workspaces: Workspace[] };
return data.workspaces;
}

Expand Down

0 comments on commit 1212b5a

Please sign in to comment.