mirror of
https://github.com/PretendoNetwork/miiverse-api.git
synced 2026-09-26 17:06:24 -05:00
Fixed build failures
This commit is contained in:
@@ -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 || '')
|
||||
|
||||
@@ -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';
|
||||
|
||||
3
src/types/memoize.d.ts
vendored
3
src/types/memoize.d.ts
vendored
@@ -1,3 +0,0 @@
|
||||
declare module 'memoize';
|
||||
|
||||
// TODO - Add proper types
|
||||
3
src/types/memoizee.d.ts
vendored
Normal file
3
src/types/memoizee.d.ts
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
declare module 'memoizee';
|
||||
|
||||
// TODO - Add proper types
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user