swager documentation

This commit is contained in:
vigdorov
2020-07-02 21:56:52 +03:00
parent 4d34b4a0bb
commit a65e3cd53c
4 changed files with 43 additions and 10 deletions

View File

@ -1,7 +1,7 @@
import {Model} from 'mongoose';
import {Injectable} from '@nestjs/common';
import {InjectModel} from '@nestjs/mongoose';
import {Store, StoreParams} from './store.schema';
import {Store, StoreRequest} from './store.schema';
@Injectable()
@ -12,7 +12,7 @@ export class StoreService {
return this.storeModel.find().exec();
}
async create(store: StoreParams): Promise<Store> {
async create(store: StoreRequest): Promise<Store> {
const searchStore = await this.findOne(store.key);
if (searchStore) {