mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-23 18:15:03 +02:00
Support for rating system (#10124)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user