Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
tamaina committed Feb 23, 2023
1 parent 4aa6748 commit 6cdb360
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 2 additions & 2 deletions packages/backend/src/models/entities/Notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ export class Notification {
* app - アプリ通知
*/
@Index()
@Column('enum', {
enum: notificationTypes,
@Column('varchar', {
length: 64,
comment: 'The type of the Notification.',
})
public type: typeof notificationTypes[number];
Expand Down
8 changes: 1 addition & 7 deletions packages/backend/src/models/entities/UserProfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,7 @@ export class UserProfile {
})
public mutedInstances: string[];

@Column('enum', {
enum: [
...notificationTypes,
// マイグレーションで削除が困難なので古いenumは残しておく
...obsoleteNotificationTypes,
],
array: true,
@Column('jsonb', {
default: [],
})
public mutingNotificationTypes: typeof notificationTypes[number][];
Expand Down

0 comments on commit 6cdb360

Please sign in to comment.