Skip to content

Commit

Permalink
fix(core): platform fields should default to null, fix #484
Browse files Browse the repository at this point in the history
regression of 706b828
  • Loading branch information
shigma committed Jan 24, 2022
1 parent 6d866c5 commit 09bfd7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export abstract class Bot<T extends Bot.BaseConfig = Bot.BaseConfig> {
private extendModel() {
if (this.platform in this.app.model.config.user.fields) return
this.app.model.extend('user', {
[this.platform]: 'string',
[this.platform]: { type: 'string', length: 63 },
}, {
unique: [this.platform as never],
})
Expand Down

0 comments on commit 09bfd7c

Please sign in to comment.