feat(server): integrate blob to context (#13491)

This commit is contained in:
DarkSky
2025-08-15 17:35:45 +08:00
committed by GitHub
parent 795bfb2f95
commit e2156ea135
5 changed files with 85 additions and 12 deletions
+6 -1
View File
@@ -67,12 +67,17 @@ export class BlobModel extends BaseModel {
});
}
async list(workspaceId: string) {
async list(
workspaceId: string,
options?: { where: Prisma.BlobWhereInput; select?: Prisma.BlobSelect }
) {
return await this.db.blob.findMany({
where: {
...options?.where,
workspaceId,
deletedAt: null,
},
select: options?.select,
});
}