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