EntityService 整理

This commit is contained in:
まっちゃとーにゅ
2023-10-11 11:28:48 +09:00
parent 487ba201bf
commit 511ff69900
26 changed files with 60 additions and 38 deletions

View File

@@ -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 });