1212// limitations under the License.
1313
1414import { type Workspace } from '@hcengineering/account'
15- import { type HulylakeClient , type JsonPatch } from '@hcengineering/hulylake-client'
15+ import { type HulylakeWorkspaceClient , type JsonPatch } from '@hcengineering/hulylake-client'
1616import type postgres from 'postgres'
1717import {
1818 generateUuid ,
@@ -60,7 +60,7 @@ export async function migrateWorkspaceMessages (
6060 ws : Workspace ,
6161 card : CardID | undefined ,
6262 db : postgres . Sql ,
63- hulylake : HulylakeClient ,
63+ hulylake : HulylakeWorkspaceClient ,
6464 accountClient : AccountClient ,
6565 personUuidBySocialId : Map < PersonId , PersonUuid >
6666) : Promise < void > {
@@ -72,7 +72,7 @@ async function migrateMessages (
7272 ws : Workspace ,
7373 card : CardID | undefined ,
7474 db : postgres . Sql ,
75- hulylake : HulylakeClient ,
75+ hulylake : HulylakeWorkspaceClient ,
7676 accountClient : AccountClient ,
7777 personUuidBySocialId : Map < PersonId , PersonUuid >
7878) : Promise < void > {
@@ -105,7 +105,7 @@ async function migrateMessages (
105105async function migrateMessagesBatch (
106106 ctx : MeasureContext ,
107107 cardId : CardID ,
108- hulylake : HulylakeClient ,
108+ hulylake : HulylakeWorkspaceClient ,
109109 accountClient : AccountClient ,
110110 personUuidBySocialId : Map < PersonId , PersonUuid > ,
111111 messages : OldMessage [ ]
@@ -161,7 +161,11 @@ async function migrateMessagesBatch (
161161 }
162162}
163163
164- async function getGroups ( ctx : MeasureContext , hulylake : HulylakeClient , cardId : CardID ) : Promise < MessagesGroup [ ] > {
164+ async function getGroups (
165+ ctx : MeasureContext ,
166+ hulylake : HulylakeWorkspaceClient ,
167+ cardId : CardID
168+ ) : Promise < MessagesGroup [ ] > {
165169 const res = await hulylake . getJson < MessagesGroupsDoc > ( `${ cardId } /messages/groups` , {
166170 maxRetries : 3 ,
167171 isRetryable : ( ) => true ,
0 commit comments