fix: pin value when update posts
Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
@@ -90,7 +90,7 @@ export class PostModel extends WriteBaseModel {
|
|||||||
@IsDate()
|
@IsDate()
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@Transform(({ value }) => {
|
@Transform(({ value }) => {
|
||||||
if (typeof value === 'undefined') {
|
if (typeof value === 'undefined' || value === null) {
|
||||||
return value
|
return value
|
||||||
}
|
}
|
||||||
const isDateIsoString = isDateString(value)
|
const isDateIsoString = isDateString(value)
|
||||||
|
|||||||
Reference in New Issue
Block a user