|
@@ -8,4 +8,11 @@ type modelType = ReturnModelType<typeof Contactoffice>;
|
|
|
export class ContactofficeService extends BaseService<modelType> {
|
|
|
@InjectEntityModel(Contactoffice)
|
|
|
model: modelType;
|
|
|
+
|
|
|
+ async query(filter, { skip, limit }) {
|
|
|
+ const res = []
|
|
|
+ const data = await this.model.findOne();
|
|
|
+ if (data) res.push(data)
|
|
|
+ return res;
|
|
|
+ }
|
|
|
}
|