Merge staging feb4 (#7910)

This commit is contained in:
Andrey Sobolev
2025-02-04 22:29:27 +07:00
committed by GitHub
parent 33cf7599cf
commit 04a282c0f8
21 changed files with 205 additions and 72 deletions
+7 -1
View File
@@ -65,7 +65,8 @@ import {
type DbAdapterHandler,
type DomainHelperOperations,
type ServerFindOptions,
type TxAdapter
type TxAdapter,
calcHashHash
} from '@hcengineering/server-core'
import type postgres from 'postgres'
import { createDBClient, createGreenDBClient, type DBClient } from './client'
@@ -1439,6 +1440,11 @@ abstract class PostgresAdapterBase implements DbAdapter {
return res
}
@withContext('get-domain-hash')
async getDomainHash (ctx: MeasureContext, domain: Domain): Promise<string> {
return await calcHashHash(ctx, domain, this)
}
curHash (): string {
return Date.now().toString(16) // Current hash value
}