Skip to content

Commit

Permalink
fix lint error from fauna example (#56719)
Browse files Browse the repository at this point in the history
  • Loading branch information
ztanner committed Oct 11, 2023
1 parent 216d968 commit daa865f
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions examples/with-fauna/lib/fauna.ts
@@ -1,11 +1,5 @@
import 'server-only'
import {
Client,
fql,
QuerySuccess,
QueryValueObject,
QueryFailure,
} from 'fauna'
import { Client, fql, QuerySuccess, QueryValueObject } from 'fauna'

const client = new Client({
secret: process.env.FAUNA_CLIENT_SECRET,
Expand All @@ -17,7 +11,7 @@ export const getAllEntries = async () => {
Entry.all()
`)
return dbresponse.data.data
} catch (error: QueryFailure | any) {
} catch (error: any) {
throw new Error(error.message)
}
}
Expand All @@ -31,7 +25,7 @@ export const createEntry = async (name: string, message: string) => {
createdAt: Time.now(),
})`)
return dbresponse.data
} catch (error: QueryFailure | any) {
} catch (error: any) {
throw new Error(error.message)
}
}

0 comments on commit daa865f

Please sign in to comment.