Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Buslaev <[email protected]>
  • Loading branch information
Artem Buslaev committed Jun 28, 2023
1 parent 77b6ae8 commit 58b2aff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/src/database-modules/database-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2500,7 +2500,7 @@ export class DatabaseServer {
* @returns config
*/
public static async setSuggestionsConfig(
config: SuggestionsConfig
config: Partial<SuggestionsConfig>
): Promise<SuggestionsConfig> {
const existingConfig = await DatabaseServer.getSuggestionsConfig(
config.user
Expand Down
2 changes: 1 addition & 1 deletion guardian-service/src/api/suggestions.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export async function suggestionsAPI(): Promise<void> {
const config = await DatabaseServer.setSuggestionsConfig({
user: user.did,
items,
} as any);
});
return new MessageResponse(config.items);
} catch (error) {
return new MessageError(error);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ export class PolicyImportExportHelper {
index: 0,
},
],
} as any);
});
}

notifier.completed();
Expand Down

0 comments on commit 58b2aff

Please sign in to comment.