From 1d2fe70f426c5676159f0049ff7ee74441ea0f0e Mon Sep 17 00:00:00 2001 From: luoer <952222@163.com> Date: Tue, 26 Sep 2023 17:06:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=8F=92=E5=85=A5?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=94=A8=E6=88=B7=E5=A4=B1=E8=B4=A5=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/database/db.sqlite | Bin 163840 -> 163840 bytes src/app.module.ts | 10 +++++++--- src/database/suscribers/entify.subscriber.ts | 2 +- .../cache/cache.controller.ts | 0 src/{common => storage}/cache/cache.module.ts | 0 .../cache/cache.service.ts | 0 src/{common => storage}/cache/index.ts | 0 7 files changed, 8 insertions(+), 4 deletions(-) rename src/{common => storage}/cache/cache.controller.ts (100%) rename src/{common => storage}/cache/cache.module.ts (100%) rename src/{common => storage}/cache/cache.service.ts (100%) rename src/{common => storage}/cache/index.ts (100%) diff --git a/content/database/db.sqlite b/content/database/db.sqlite index ec533ca6848137c18ba0c17aa1da57502739f67a..bfca6b3fab0d1c3cae11fc62a00b218db8e45d5e 100644 GIT binary patch delta 630 zcmZo@;A&{#njpk;-U;3vW#dd4XsQ~K`!tD z>H@K!ZS8)se(KYXw&xpn8TA7%E zj8iqU0<$5;fy{xhp7r;?*uMd0+-9x2S&S_Fiy53I&#<#o$zz2WZp@%A$$-VJ=2oT# zAj6}~Kp|&piE1}k2-*2YVCNgbEMtjggSj2M@fKDFmLTKZfk6RcBb#LmGRxQ)W)?F8 f14Aq*5`e*q*Qv@tvp~*9HVfTdO%IkmU|awIQkK6u delta 92 zcmZo@;A&{#njp): void | Promise { - event.entity.deletedBy = this.getUser(); + event.entity && (event.entity.deletedBy = this.getUser()); } getUser() { diff --git a/src/common/cache/cache.controller.ts b/src/storage/cache/cache.controller.ts similarity index 100% rename from src/common/cache/cache.controller.ts rename to src/storage/cache/cache.controller.ts diff --git a/src/common/cache/cache.module.ts b/src/storage/cache/cache.module.ts similarity index 100% rename from src/common/cache/cache.module.ts rename to src/storage/cache/cache.module.ts diff --git a/src/common/cache/cache.service.ts b/src/storage/cache/cache.service.ts similarity index 100% rename from src/common/cache/cache.service.ts rename to src/storage/cache/cache.service.ts diff --git a/src/common/cache/index.ts b/src/storage/cache/index.ts similarity index 100% rename from src/common/cache/index.ts rename to src/storage/cache/index.ts