We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ae0f15 commit b470603Copy full SHA for b470603
extensions/suspend/js/src/forum/extend.ts
@@ -5,7 +5,7 @@ import Model from 'flarum/common/Model';
5
export default [
6
new Extend.Model(User)
7
.attribute<boolean>('canSuspend')
8
- .attribute<Date, string | null | undefined>('suspendedUntil', Model.transformDate)
+ .attribute<Date | null, string | null>('suspendedUntil', Model.transformDate)
9
.attribute<string | null | undefined>('suspendReason')
10
.attribute<string | null | undefined>('suspendMessage'),
11
];
0 commit comments