swager documentation
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user