260326:1547 Fixing Refactor ADR-019 Naming convention uuid #04
This commit is contained in:
@@ -304,7 +304,7 @@ export class AsBuiltDrawingService {
|
||||
|
||||
async findOneByUuid(uuid: string) {
|
||||
const asBuiltDrawing = await this.asBuiltDrawingRepo.findOne({
|
||||
where: { uuid },
|
||||
where: { publicId: uuid },
|
||||
relations: [
|
||||
'mainCategory',
|
||||
'subCategory',
|
||||
|
||||
@@ -205,7 +205,7 @@ export class ContractDrawingService {
|
||||
|
||||
async findOneByUuid(uuid: string) {
|
||||
const drawing = await this.drawingRepo.findOne({
|
||||
where: { uuid },
|
||||
where: { publicId: uuid },
|
||||
relations: ['attachments'],
|
||||
});
|
||||
|
||||
|
||||
@@ -298,7 +298,7 @@ export class ShopDrawingService {
|
||||
|
||||
async findOneByUuid(uuid: string) {
|
||||
const shopDrawing = await this.shopDrawingRepo.findOne({
|
||||
where: { uuid },
|
||||
where: { publicId: uuid },
|
||||
relations: [
|
||||
'mainCategory',
|
||||
'subCategory',
|
||||
|
||||
@@ -155,7 +155,7 @@ export class NotificationService {
|
||||
|
||||
async markAsReadByUuid(uuid: string, userId: number): Promise<void> {
|
||||
const notification = await this.notificationRepo.findOne({
|
||||
where: { uuid, userId },
|
||||
where: { publicId: uuid, userId },
|
||||
});
|
||||
|
||||
if (!notification) {
|
||||
|
||||
Reference in New Issue
Block a user