feat/collection #29

Merged
vivy-agent merged 8 commits from feat/collection into main 2026-03-29 14:18:30 +07:00
13 changed files with 352 additions and 12 deletions
Showing only changes of commit 412b501c80 - Show all commits

View File

@ -1,7 +1,6 @@
import slugify from "slugify"; import slugify from "slugify";
import { AppError } from "../../../helpers/error/instances/app"; import { AppError } from "../../../helpers/error/instances/app";
import { prisma } from "../../../utils/databases/prisma/connection"; import { prisma } from "../../../utils/databases/prisma/connection";
import { Prisma } from "@prisma/client";
export type DeleteUserCollectionBySystemPayload = { export type DeleteUserCollectionBySystemPayload = {
userId: string; userId: string;
@ -27,6 +26,6 @@ export const deleteItemInUserCollectionBySystemRepository = async (payload: Dele
}, },
}); });
} catch (error) { } catch (error) {
throw new AppError(500, "Failed to remove item from collection"); throw new AppError(500, "Failed to remove item from collection", error);
} }
}; };