File tree 5 files changed +12
-8
lines changed
apps/meteor/ee/server/apps/storage 5 files changed +12
-8
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @rocket.chat/apps-engine ' : patch
3
+ ' @rocket.chat/meteor ' : patch
4
+ ---
5
+
6
+ Fixes the Apps-Engine package installation, removing the dependency on an internal package
Original file line number Diff line number Diff line change 1
1
import type { IAppStorageItem } from '@rocket.chat/apps-engine/server/storage' ;
2
2
import { AppMetadataStorage } from '@rocket.chat/apps-engine/server/storage' ;
3
3
import type { Apps } from '@rocket.chat/models' ;
4
+ import { removeEmpty } from '@rocket.chat/tools' ;
4
5
import type { UpdateFilter } from 'mongodb' ;
5
6
6
7
export class AppRealStorage extends AppMetadataStorage {
@@ -18,10 +19,11 @@ export class AppRealStorage extends AppMetadataStorage {
18
19
throw new Error ( 'App already exists.' ) ;
19
20
}
20
21
21
- const id = ( await this . db . insertOne ( item ) ) . insertedId as unknown as string ;
22
- item . _id = id ;
22
+ const nonEmptyItem = removeEmpty ( item ) ;
23
+ const id = ( await this . db . insertOne ( nonEmptyItem ) ) . insertedId as unknown as string ;
24
+ nonEmptyItem . _id = id ;
23
25
24
- return item ;
26
+ return nonEmptyItem ;
25
27
}
26
28
27
29
public async retrieveOne ( id : string ) : Promise < IAppStorageItem > {
Original file line number Diff line number Diff line change 93
93
},
94
94
"dependencies" : {
95
95
"@msgpack/msgpack" : " 3.0.0-beta2" ,
96
- "@rocket.chat/tools" : " workspace:^" ,
97
96
"adm-zip" : " ^0.5.16" ,
98
97
"debug" : " ^4.3.7" ,
99
98
"esbuild" : " ^0.25.0" ,
Original file line number Diff line number Diff line change 1
1
import { Buffer } from 'buffer' ;
2
2
3
- import { removeEmpty } from '@rocket.chat/tools' ;
4
-
5
3
import type { IGetAppsFilter } from './IGetAppsFilter' ;
6
4
import { ProxiedApp } from './ProxiedApp' ;
7
5
import type { PersistenceBridge , UserBridge } from './bridges' ;
@@ -609,7 +607,7 @@ export class AppManager {
609
607
}
610
608
611
609
descriptor . signature = await this . getSignatureManager ( ) . signApp ( descriptor ) ;
612
- const created = await this . appMetadataStorage . create ( removeEmpty ( descriptor ) ) ;
610
+ const created = await this . appMetadataStorage . create ( descriptor ) ;
613
611
614
612
if ( ! created ) {
615
613
aff . setStorageError ( 'Failed to create the App, the storage did not return it.' ) ;
Original file line number Diff line number Diff line change @@ -7999,7 +7999,6 @@ __metadata:
7999
7999
dependencies:
8000
8000
"@msgpack/msgpack": "npm:3.0.0-beta2"
8001
8001
"@rocket.chat/eslint-config": "workspace:~"
8002
- "@rocket.chat/tools": "workspace:^"
8003
8002
"@rocket.chat/ui-kit": "workspace:~"
8004
8003
"@types/adm-zip": "npm:^0.5.6"
8005
8004
"@types/debug": "npm:^4.1.12"
You can’t perform that action at this time.
0 commit comments