Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: overridepage soft delete (#2341)
const namespace = await db.query.ratelimitNamespaces.findFirst({ where: (table, { eq, and, isNull }) => and( eq(table.id, props.params.namespaceId), isNull(table.deletedAt) ), with: { overrides: { columns: { id: true, identifier: true, limit: true, duration: true, async: true, }, where: (table, { isNull }) => // excluding soft deletes columns isNull(table.deletedAt) }, workspace: { columns: { id: true, tenantId: true, features: true, }, }, }, });
- Loading branch information