UBERF-5603 (#4754)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2024-02-23 15:39:49 +07:00
committed by GitHub
parent cc8a1d549a
commit ffc8d1dfac
184 changed files with 2755 additions and 561 deletions
+2 -2
View File
@@ -48,7 +48,7 @@ import { type Db, MongoClient } from 'mongodb'
import { clearTelegramHistory } from './telegram'
import { diffWorkspace, updateField } from './workspace'
import { type Data, getWorkspaceId, RateLimiter, type Tx, type Version } from '@hcengineering/core'
import { type Data, getWorkspaceId, RateLimiter, type Tx, type Version, type AccountRole } from '@hcengineering/core'
import { type MinioService } from '@hcengineering/minio'
import { consoleModelLogger, type MigrateOperation } from '@hcengineering/model'
import { openAIConfigDefaults } from '@hcengineering/openai'
@@ -228,7 +228,7 @@ export function devTool (
program
.command('set-user-role <email> <workspace> <role>')
.description('set user role')
.action(async (email: string, workspace: string, role: number, cmd) => {
.action(async (email: string, workspace: string, role: AccountRole, cmd) => {
console.log(`set user ${email} role for ${workspace}...`)
await setRole(email, workspace, productId, role)
})