mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-12 12:47:45 +02:00
Merge staging feb4 (#7910)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user