mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-30 13:35:04 +02:00
Rework triggers with arrays (#7168)
This commit is contained in:
@@ -48,7 +48,7 @@ export class LiveQueryMiddleware extends BaseMiddleware implements Middleware {
|
||||
getModel (): ModelDb {
|
||||
return modelDb
|
||||
},
|
||||
close: async () => {},
|
||||
close: () => Promise.resolve(),
|
||||
findAll: async (_class, query, options) => {
|
||||
const _ctx: MeasureContext = (options as ServerFindOptions<Doc>)?.ctx ?? metrics
|
||||
delete (options as ServerFindOptions<Doc>)?.ctx
|
||||
@@ -73,8 +73,8 @@ export class LiveQueryMiddleware extends BaseMiddleware implements Middleware {
|
||||
results.total
|
||||
)[0]
|
||||
},
|
||||
tx: async (tx) => {
|
||||
return {}
|
||||
tx: (tx) => {
|
||||
return Promise.resolve({})
|
||||
},
|
||||
searchFulltext: async (query: SearchQuery, options: SearchOptions) => {
|
||||
// Cast client doesn't support fulltext search
|
||||
|
||||
Reference in New Issue
Block a user