chore: Synchronizing refactor and small fixes from enterprise codebase (#3634)
* chore: Syncronizing refactor and small fixes from enterprise codebase * fix
This commit is contained in:
@@ -37,7 +37,7 @@ async function teamPermanentDeleter(team: Team) {
|
||||
|
||||
try {
|
||||
transaction = await sequelize.transaction();
|
||||
await Attachment.findAllInBatches(
|
||||
await Attachment.findAllInBatches<Attachment>(
|
||||
{
|
||||
where: {
|
||||
teamId,
|
||||
@@ -62,7 +62,7 @@ async function teamPermanentDeleter(team: Team) {
|
||||
}
|
||||
);
|
||||
// Destroy user-relation models
|
||||
await User.findAllInBatches(
|
||||
await User.findAllInBatches<User>(
|
||||
{
|
||||
attributes: ["id"],
|
||||
where: {
|
||||
|
||||
Reference in New Issue
Block a user