EntityService 整理
This commit is contained in:
parent
487ba201bf
commit
511ff69900
26 changed files with 60 additions and 38 deletions
|
|
@ -32,11 +32,11 @@ export class AppEntityService {
|
|||
includeProfileImageIds?: boolean
|
||||
},
|
||||
): Promise<Packed<'App'>> {
|
||||
const opts = Object.assign({
|
||||
const opts = {
|
||||
detail: false,
|
||||
includeSecret: false,
|
||||
includeProfileImageIds: false,
|
||||
}, options);
|
||||
includeProfileImageIds: false, ...options
|
||||
};
|
||||
|
||||
const app = typeof src === 'object' ? src : await this.appsRepository.findOneByOrFail({ id: src });
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue