Remove unnecessary auth check
This commit is contained in:
parent
2ab7d35ce3
commit
449a3b649c
|
@ -39,7 +39,6 @@ const numericSchema = z.object({
|
|||
export const resolvemarket = newEndpoint(['POST'], async (req, auth) => {
|
||||
const { contractId } = validate(bodySchema, req.body)
|
||||
const userId = auth.uid
|
||||
if (!userId) throw new APIError(403, 'Not authorized')
|
||||
|
||||
const contractDoc = firestore.doc(`contracts/${contractId}`)
|
||||
const contractSnap = await contractDoc.get()
|
||||
|
|
Loading…
Reference in New Issue
Block a user