refactor admin functions in store to use active account - introduce admin middleware

This commit is contained in:
Michael Dausmann
2023-02-24 21:09:49 +11:00
parent f2b3a2617d
commit a341a641e8
6 changed files with 57 additions and 22 deletions

View File

@@ -75,7 +75,8 @@ export default class UserAccountService {
return this.prisma.membership.create({
data: {
user_id: user_id,
account_id: account_id
account_id: account_id,
access: ACCOUNT_ACCESS.READ_ONLY
},
include: {
account: true