Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a function that returns on roles: getRoles #188

Closed
jaytula opened this issue Sep 25, 2021 · 0 comments · Fixed by #203
Closed

Create a function that returns on roles: getRoles #188

jaytula opened this issue Sep 25, 2021 · 0 comments · Fixed by #203
Assignees
Labels
Back End Focused on Back End (Express / Postgres / Docker) Enhancement Improves or adds something

Comments

@jaytula
Copy link
Contributor

jaytula commented Sep 25, 2021

This requires the completion of #181 before starting.

The function signature should go something like this:

interface IRole {
  rid: number;
  name: string;
}

const getRoles => async () => {
  // return an array of role objects IRole[]
}
  • This should go in db/roles.ts.
  • Be sure to also write a basic test in test/roles.test.ts
@ZumDeWald ZumDeWald added Back End Focused on Back End (Express / Postgres / Docker) Enhancement Improves or adds something hacktoberfest-accepted Accept for Hacktoberfest, will merge after review and removed hacktoberfest-accepted Accept for Hacktoberfest, will merge after review labels Sep 29, 2021
@ZumDeWald ZumDeWald self-assigned this Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Back End Focused on Back End (Express / Postgres / Docker) Enhancement Improves or adds something
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants