mirror of
https://github.com/dadosfera/maestro.git
synced 2026-10-28 07:39:07 +00:00
FIX: add logger and return info
This commit is contained in:
@@ -198,6 +198,7 @@ export class ShareService implements OnModuleInit {
|
||||
|
||||
private async getShareMetadata(id: string, user: RequestUser) {
|
||||
const metadata = PackTheMetadata({});
|
||||
this.logger.info('GET share metadata')
|
||||
const info = await this.shareMetadataService.get(id, metadata);
|
||||
if (isJWT(id) && info ){
|
||||
return info;
|
||||
@@ -219,7 +220,7 @@ export class ShareService implements OnModuleInit {
|
||||
);
|
||||
|
||||
if (is_data_manager || is_get) {
|
||||
return;
|
||||
return info;
|
||||
}
|
||||
|
||||
throw new ForbiddenException(
|
||||
|
||||
Reference in New Issue
Block a user