Update notification and membership models, add extension installing method

Several updates are made to the notification model, mainly removing the 'entity_id', 'entity_type', and 'language_code' fields from the properties. We've also updated the 'accounts_memberships' table, by preventing its updates except for 'account_role'.
This commit is contained in:
giancarlo
2024-04-29 20:04:11 +07:00
parent 26511b8886
commit e09a10a7f9
4 changed files with 41 additions and 29 deletions

View File

@@ -9,8 +9,6 @@ type Notification = {
type: 'info' | 'warning' | 'error';
created_at: string;
link: string | null;
entity_id: string | null;
entity_type: string | null;
};
export function useFetchNotifications({
@@ -58,9 +56,7 @@ export function useFetchNotifications({
dismissed,
type,
created_at,
link,
entity_id,
entity_type
link
`,
)
.in('account_id', accountIds)