feat: show the full work history and load every lead stage on the board
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -30,12 +30,20 @@ const RETENTION_DAYS: Record<DeletionRetention, number | null> = {
|
||||
export class DeletionsService {
|
||||
constructor(private readonly prisma: PrismaService) {}
|
||||
|
||||
async list(organizationId: string, page = 1, limit = 30, q?: string) {
|
||||
async list(
|
||||
organizationId: string,
|
||||
page = 1,
|
||||
limit = 30,
|
||||
q?: string,
|
||||
deletedById?: string,
|
||||
) {
|
||||
const take = Math.min(100, Math.max(1, limit));
|
||||
const skip = (Math.max(1, page) - 1) * take;
|
||||
const query = q?.trim();
|
||||
const actorId = deletedById?.trim();
|
||||
const where = {
|
||||
organizationId,
|
||||
...(actorId ? { deletedById: actorId } : {}),
|
||||
...(query
|
||||
? {
|
||||
OR: [
|
||||
|
||||
Reference in New Issue
Block a user