Add subscription and integration to user

This commit is contained in:
Jackson Harper
2023-09-15 22:21:31 +08:00
parent eb604fff84
commit ce3f1f789c

View File

@ -10,6 +10,8 @@ import {
ReceivedEmail,
Group,
ContentDisplayReport,
Subscription,
Integration,
} from './db'
import { compare, hashSync } from 'bcryptjs'
const readYamlFile = require('read-yaml-file')
@ -37,6 +39,8 @@ const ADMIN_USER_EMAIL =
{ resource: UserArticle, options: { parent: { name: 'Users' } } },
{ resource: ReceivedEmail, options: { parent: { name: 'Users' } } },
{ resource: Group, options: { parent: { name: 'Users' } } },
{ resource: Subscription, options: { parent: { name: 'Users' } } },
{ resource: Integration, options: { parent: { name: 'Users' } } },
{
resource: ContentDisplayReport,
},