File size: 676 Bytes
7b850b7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
import { Inject, Injectable } from '@nestjs/common';
import { Model, Types } from 'mongoose';
import { sharedCrudService } from '../shared/sharedCrud.services';
import { ACTIVITY_REPOSITORY } from 'src/constants';
import { IUserActivityDocument } from './activity.schema';
@Injectable()
export class ActivityService extends sharedCrudService {
constructor(
@Inject(ACTIVITY_REPOSITORY)
readonly activityRepository: Model<IUserActivityDocument>,
) {
super(activityRepository);
}
async activityLisitng(
page: number,
resPerPage: number,
search: string,
): Promise<any> {
return 'Hello from Activity service.'
}
}
|