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) {
|
async findOneByUuid(uuid: string) {
|
||||||
const asBuiltDrawing = await this.asBuiltDrawingRepo.findOne({
|
const asBuiltDrawing = await this.asBuiltDrawingRepo.findOne({
|
||||||
where: { uuid },
|
where: { publicId: uuid },
|
||||||
relations: [
|
relations: [
|
||||||
'mainCategory',
|
'mainCategory',
|
||||||
'subCategory',
|
'subCategory',
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ export class ContractDrawingService {
|
|||||||
|
|
||||||
async findOneByUuid(uuid: string) {
|
async findOneByUuid(uuid: string) {
|
||||||
const drawing = await this.drawingRepo.findOne({
|
const drawing = await this.drawingRepo.findOne({
|
||||||
where: { uuid },
|
where: { publicId: uuid },
|
||||||
relations: ['attachments'],
|
relations: ['attachments'],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -298,7 +298,7 @@ export class ShopDrawingService {
|
|||||||
|
|
||||||
async findOneByUuid(uuid: string) {
|
async findOneByUuid(uuid: string) {
|
||||||
const shopDrawing = await this.shopDrawingRepo.findOne({
|
const shopDrawing = await this.shopDrawingRepo.findOne({
|
||||||
where: { uuid },
|
where: { publicId: uuid },
|
||||||
relations: [
|
relations: [
|
||||||
'mainCategory',
|
'mainCategory',
|
||||||
'subCategory',
|
'subCategory',
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ export class NotificationService {
|
|||||||
|
|
||||||
async markAsReadByUuid(uuid: string, userId: number): Promise<void> {
|
async markAsReadByUuid(uuid: string, userId: number): Promise<void> {
|
||||||
const notification = await this.notificationRepo.findOne({
|
const notification = await this.notificationRepo.findOne({
|
||||||
where: { uuid, userId },
|
where: { publicId: uuid, userId },
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!notification) {
|
if (!notification) {
|
||||||
|
|||||||
Reference in New Issue
Block a user