diff --git a/src/controllers/DappsStakingController.ts b/src/controllers/DappsStakingController.ts index 707b4d6..b879074 100644 --- a/src/controllers/DappsStakingController.ts +++ b/src/controllers/DappsStakingController.ts @@ -198,6 +198,7 @@ export class DappsStakingController extends ControllerBase implements IControlle app.route('/api/v1/:network/dapps-staking/register').post( body('name').notEmpty().trim().escape(), body('description').notEmpty().trim().escape(), + body('shortDescription').optional().trim().escape(), body('url').isURL(), body('license').notEmpty().trim().isIn(['GPL-3.0', 'MIT', 'GNU']), body('address').notEmpty().trim().escape(), diff --git a/src/index.ts b/src/index.ts index 63adab2..344e70e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -20,4 +20,5 @@ app.use(cors()); const controllers: IControllerBase[] = container.getAll(ContainerTypes.Controller); controllers.forEach((controller) => controller.register(app)); +functions.runWith({ memory: '512MB' }); exports.app = functions.https.onRequest(app); diff --git a/src/models/Dapp.ts b/src/models/Dapp.ts index cb24d28..1554683 100644 --- a/src/models/Dapp.ts +++ b/src/models/Dapp.ts @@ -19,6 +19,7 @@ export interface DappItem { contractType: string; mainCategory: Category; creationTime: number; + shortDescription?: string; } export interface NewDappItem extends DappItem { diff --git a/src/services/FirebaseService.ts b/src/services/FirebaseService.ts index fb39342..dda9ec8 100644 --- a/src/services/FirebaseService.ts +++ b/src/services/FirebaseService.ts @@ -45,7 +45,7 @@ export class FirebaseService implements IFirebaseService { const query = admin .firestore() .collection(collectionKey) - .select('name', 'iconUrl', 'address', 'mainCategory', 'imagesUrl'); + .select('name', 'iconUrl', 'address', 'mainCategory', 'imagesUrl', 'shortDescription'); return this.getDappsData(query); } @@ -109,6 +109,7 @@ export class FirebaseService implements IFirebaseService { imagesUrl: dapp.imagesUrl, developers: dapp.developers, description: dapp.description, + shortDescription: dapp.shortDescription, communities: dapp.communities, contractType: dapp.contractType, mainCategory: dapp.mainCategory,