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()
|
||||
@IsOptional()
|
||||
@Transform(({ value }) => {
|
||||
if (typeof value === 'undefined') {
|
||||
if (typeof value === 'undefined' || value === null) {
|
||||
return value
|
||||
}
|
||||
const isDateIsoString = isDateString(value)
|
||||
|
||||
Reference in New Issue
Block a user