-
Notifications
You must be signed in to change notification settings - Fork 0
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 and test music submission procedure #114
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
||
import { authenticatedProcedureBuilder } from "../middleware/authentictated"; | ||
|
||
// add a test verifying that inputting an invalid groupId results in an error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can remove this comment if done
) | ||
|
||
.mutation(async ({ ctx, input }) => { | ||
// Check if the user is a Musician or an Admin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once gavin/Jordans PRs are merged in, we can use the middleware to handle this error case
import { MockNextCookies } from "../mocks/MockNextCookies"; | ||
import { createMockCookieService } from "../mocks/util"; | ||
|
||
//bun db:studio |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can remove this :P
}); | ||
|
||
beforeAll(async () => { | ||
const person1 = await prisma.user.upsert({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can simplify these prisma queries at some point, once everything else is set
packages/db/src/index.ts
Outdated
@@ -1,6 +1,7 @@ | |||
import { PrismaClient } from "@prisma/client"; | |||
import { PrismaClient, Role } from "@prisma/client"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't need to import if we are exporting directly
Description
Motivation and Context
Closes STORY NAME HERE
Type of changes
Checklist:
How has this been tested?
Screenshots (if appropriate):