Remove unnecessary auth check

This commit is contained in:
Benjamin 2022-06-24 21:23:02 -07:00
parent 2ab7d35ce3
commit 449a3b649c

View File

@ -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()