Skip to content

Commit

Permalink
fixed lint errors lol...
Browse files Browse the repository at this point in the history
  • Loading branch information
jxmoose committed Mar 11, 2024
1 parent 72ba091 commit 43bbc59
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/supabase/exhibits/queries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { ExhibitRow } from '../../types/types';
import supabase from '../client';

/**
*
* @params nothing
* @returns all exhibits
*/
export async function fetchAllExhibits() {
const { data, error } = await supabase.from('exhibits').select('*');
Expand All @@ -17,6 +18,7 @@ export async function fetchAllExhibits() {
/**
*
* @param id
* @returns nothing
*/
export async function deleteDisplay(id: string) {
const { error } = await supabase.from('exhibits').delete().eq('id', id);
Expand All @@ -31,6 +33,7 @@ export async function deleteDisplay(id: string) {
/**
*
* @param exhibitData
* @returns new exhibit row
*/
export async function createExhibit(exhibitData: ExhibitRow) {
const { data, error } = await supabase.from('exhibits').upsert([exhibitData]);
Expand Down

0 comments on commit 43bbc59

Please sign in to comment.