1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-11-24 15:16:30 +09:00
This commit is contained in:
tamaina 2023-02-23 11:10:16 +00:00
parent 4aa6748387
commit 6cdb3600e2
2 changed files with 3 additions and 9 deletions

View File

@ -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];

View File

@ -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][];