Fix little import errors. Cleanup. Version bump.

This commit is contained in:
2023-05-23 14:53:05 -04:00
parent 37122626ff
commit f19288833a
6 changed files with 33 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
import { DatabaseError } from '@mifi/services-common/domain/errors/DatabaseError';
import { DatabaseError } from '@mifi/services-common/lib/domain/errors/DatabaseError';
import { Auth, Log, Strategy, Token } from '..';
import { Auth as AuthProps } from '../schema/auth';

View File

@@ -1,6 +1,6 @@
import { InferSchemaType, Model, Schema, StringSchemaDefinition, Types } from 'mongoose';
import { Payload } from '@mifi/services-common/types/Payload';
import { Payload } from '@mifi/services-common/lib/types/Payload';
import { Action } from '../constants/action';

View File

@@ -53,11 +53,11 @@ export const StrategySchema = new Schema<StrategyDocument, StrategyModel>(
},
);
StrategySchema.methods.getPopulatedStrategy = async function (this: StrategyModel) {
StrategySchema.methods.getPopulatedStrategy = async function (this: StrategyDocument) {
return this.populate<StrategyPopulatedDocument>('parent');
};
StrategySchema.methods.getAuthRecord = async function (this: StrategyModel) {
StrategySchema.methods.getAuthRecord = async function (this: StrategyDocument) {
return (await this.getPopulatedStrategy()).parent;
};