mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-30 23:05:30 -04:00
ESLint: Enable @typescript-eslint/return-await rule
This ensures stack traces are helpful at the cost of a slightly lower performance (one more tick in the event loop). Fixes #838 Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
6a6dc7ea21
commit
6ffeb2e9c9
8 changed files with 26 additions and 20 deletions
|
@ -79,7 +79,7 @@ export class HistoryService {
|
|||
);
|
||||
}
|
||||
entry.pinStatus = updateDto.pinStatus;
|
||||
return this.historyEntryRepository.save(entry);
|
||||
return await this.historyEntryRepository.save(entry);
|
||||
}
|
||||
|
||||
async deleteHistoryEntry(noteIdOrAlias: string, user: User): Promise<void> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue