690322:2132 Fixing Deployment Errors #02
This commit is contained in:
@@ -13,6 +13,7 @@ async function runSeeds() {
|
||||
await seedOrganizations(dataSource);
|
||||
await seedUsers(dataSource);
|
||||
} catch (_error) {
|
||||
// Ignore error as logs are removed
|
||||
} finally {
|
||||
await dataSource.destroy();
|
||||
}
|
||||
|
||||
@@ -131,8 +131,8 @@ export const seedWorkflowDefinitions = async (dataSource: DataSource) => {
|
||||
})
|
||||
);
|
||||
} catch (_error) {
|
||||
// Ignore error as logs are removed
|
||||
}
|
||||
} else {
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -9,11 +9,7 @@ import {
|
||||
UseGuards,
|
||||
Query,
|
||||
} from '@nestjs/common';
|
||||
import {
|
||||
ApiTags,
|
||||
ApiOperation,
|
||||
ApiBearerAuth,
|
||||
} from '@nestjs/swagger';
|
||||
import { ApiTags, ApiOperation, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { ContractService } from './contract.service.js';
|
||||
import { CreateContractDto } from './dto/create-contract.dto.js';
|
||||
import { UpdateContractDto } from './dto/update-contract.dto.js';
|
||||
|
||||
@@ -9,7 +9,6 @@ import { Repository } from 'typeorm';
|
||||
// Entities
|
||||
import { Notification, NotificationType } from './entities/notification.entity';
|
||||
import { User } from '../user/entities/user.entity';
|
||||
import { UserPreference } from '../user/entities/user-preference.entity';
|
||||
|
||||
// Gateway
|
||||
import { NotificationGateway } from './notification.gateway';
|
||||
|
||||
@@ -96,6 +96,7 @@ async function migrateStorage() {
|
||||
}
|
||||
}
|
||||
} catch (_error) {
|
||||
// Ignore error as logs are removed
|
||||
} finally {
|
||||
await dataSource.destroy();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user