Support for rating system (#10124)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2025-10-24 10:10:01 +07:00
committed by GitHub
parent 768ff39ab1
commit ffd8d90378
137 changed files with 5005 additions and 712 deletions
+3
View File
@@ -70,6 +70,8 @@ import { generateToken } from '@hcengineering/server-token'
import { createStorageDataAdapter } from './blobStorage'
import { CommunicationMiddleware, type CommunicationApiFactory } from './communication'
import { RatingMiddleware } from '@hcengineering/server-rating'
/**
* @public
*/
@@ -156,6 +158,7 @@ export function createServerPipeline (
UserStatusMiddleware.create,
ApplyTxMiddleware.create, // Extract apply
IdentifierMiddleware.create, // After ApplyTx to ensure that it pass
RatingMiddleware.create, // Rating editing restrictions
TxMiddleware.create, // Store tx into transaction domain
...(opt.disableTriggers === true ? [] : [TriggersMiddleware.create]),
...(opt.fulltextUrl !== undefined