Fixed build failures

This commit is contained in:
Jonathan Barrow
2023-04-22 17:09:21 -04:00
parent 93008c5a1a
commit 442c20ed67
5 changed files with 8 additions and 8 deletions

View File

@@ -24,7 +24,6 @@ if (process.env.PN_MIIVERSE_API_CONFIG_MONGOOSE_ACCOUNT_SERVER_CONNECT_OPTIONS_P
LOG_WARN('No Mongoose connection options found for main connection. To add connection options, set PN_MIIVERSE_API_CONFIG_MONGOOSE_ACCOUNT_SERVER_CONNECT_OPTIONS_PATH to the path of your options JSON file');
}
export const config: Config = {
http: {
port: Number(process.env.PN_MIIVERSE_API_CONFIG_HTTP_PORT || '')

View File

@@ -1,5 +1,5 @@
import express from 'express';
import memoize from 'memoize';
import memoize from 'memoizee';
import { getPNID, getEndPoint } from '@/database';
import { Post } from '@/models/post';
import { Community } from '@/models/community';

View File

@@ -1,3 +0,0 @@
declare module 'memoize';
// TODO - Add proper types

3
src/types/memoizee.d.ts vendored Normal file
View File

@@ -0,0 +1,3 @@
declare module 'memoizee';
// TODO - Add proper types

View File

@@ -8,7 +8,7 @@ import { PNG } from 'pngjs';
import bmp from 'bmp-js';
import aws from 'aws-sdk';
import { createChannel, createClient, Metadata } from 'nice-grpc';
import { FriendsDefinition } from 'pretendo-grpc-ts/src/friends/friends_service';
import { friends } from 'pretendo-grpc-ts';
import { ParsedQs } from 'qs';
import { getPNID } from '@/database';
import { LOG_ERROR } from '@/logger';
@@ -16,12 +16,13 @@ import { Settings } from '@/models/settings';
import { Content } from '@/models/content';
import { SafeQs } from '@/types/common/safe-qs';
import { ParamPack } from '@/types/common/param-pack';
import { config } from '@/config-manager';
const { FriendsService } = friends;
const { ip, port, api_key } = config.grpc.friends;
const channel = createChannel(`${ip}:${port}`);
const client = createClient(FriendsDefinition, channel);
const client = createClient(FriendsService.FriendsDefinition, channel);
const s3 = new aws.S3({
endpoint: new aws.Endpoint(config.s3.endpoint),