mirror of
https://github.com/supabase/supabase.git
synced 2026-10-19 08:09:11 +03:00
chore: prettier
This commit is contained in:
1 parent
40fcf15a61
commit
898489e8b2
1 file changed
+2
-6
@@ -9,10 +9,7 @@ export type ProjectLintsVariables = {
|
||||
projectRef: string
|
||||
}
|
||||
|
||||
const getProjectLints = async (
|
||||
{ projectRef }: ProjectLintsVariables,
|
||||
signal?: AbortSignal
|
||||
) => {
|
||||
const getProjectLints = async ({ projectRef }: ProjectLintsVariables, signal?: AbortSignal) => {
|
||||
const { data, error } = await get('/platform/projects/{ref}/run-lints', {
|
||||
params: { path: { ref: projectRef } },
|
||||
signal,
|
||||
@@ -31,8 +28,7 @@ export const useProjectLintsQuery = <TData = ProjectLintsData>(
|
||||
) =>
|
||||
useQuery<ProjectLintsData, ProjectLintsError, TData>(
|
||||
lintKeys.lint(projectRef),
|
||||
({ signal }) =>
|
||||
getProjectLints({ projectRef }, signal),
|
||||
({ signal }) => getProjectLints({ projectRef }, signal),
|
||||
{
|
||||
enabled: enabled && typeof projectRef !== 'undefined',
|
||||
...options,
|
||||
|
||||
Reference in new issue
Block a user