chore: remove unused repo func

This commit is contained in:
Henry
2025-04-30 00:03:47 +01:00
parent 88110b0b8f
commit 73d8799c75
2 changed files with 0 additions and 25 deletions

View File

@@ -16,15 +16,6 @@ AS $$
WHERE "listId" = list_id AND index > card_index AND "deletedAt" IS NULL;
$$;
CREATE OR REPLACE FUNCTION push_card_index(list_id BIGINT, card_index INT)
RETURNS VOID
LANGUAGE SQL
AS $$
UPDATE card
SET index = index + 1
WHERE "listId" = list_id AND index >= card_index AND "deletedAt" IS NULL;
$$;
CREATE OR REPLACE FUNCTION is_workspace_admin(user_id UUID, workspace_id BIGINT)
RETURNS BOOLEAN
LANGUAGE SQL

View File

@@ -583,22 +583,6 @@ export const shiftIndex = async (
return data;
};
// Handled in update transaction
export const pushIndex = async (
db: SupabaseClient<Database>,
args: {
listId: number;
cardIndex: number;
},
) => {
const { data } = await db.rpc("push_card_index", {
list_id: args.listId,
card_index: args.cardIndex,
});
return data;
};
export const softDelete = async (
db: dbClient,
args: {