refactor: move shift index into transaction
This commit is contained in:
@@ -133,11 +133,6 @@ export const listRouter = createTRPCRouter({
|
||||
|
||||
await activityRepo.bulkCreate(ctx.db, activities);
|
||||
|
||||
await listRepo.shiftIndex(ctx.supabaseClient, {
|
||||
boardId: list.boardId,
|
||||
listIndex: list.index,
|
||||
});
|
||||
|
||||
return { success: true };
|
||||
}),
|
||||
update: protectedProcedure
|
||||
|
||||
Reference in New Issue
Block a user