Skip to content

Commit

Permalink
feat: delete communities limit
Browse files Browse the repository at this point in the history
  • Loading branch information
wisnie committed Oct 23, 2022
1 parent a6f2225 commit c8955f3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/get/getCommunities.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import { z } from 'zod';
import { INITIAL_PUBLIC_COMMUNITES_DISPLAYED } from '../../constants/community';
import { CommunitySch } from '../../validators/Community';
import { supabase } from '../supabase';

export const getCommunities = async () => {
const { data, error } = await supabase
.from('Community')
.select('*')
.limit(INITIAL_PUBLIC_COMMUNITES_DISPLAYED);
const { data, error } = await supabase.from('Community').select('*');

if (error) {
throw new Error(error.message);
Expand Down

0 comments on commit c8955f3

Please sign in to comment.