mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
small refactorings
This commit is contained in:
@@ -29,7 +29,7 @@ function register(router, loginMiddleware) {
|
||||
|
||||
if (!etapiToken) {
|
||||
// shouldn't happen since this already passed auth validation
|
||||
throw new Error(`Cannot find the token ${parsed.etapiTokenId}.`);
|
||||
throw new Error(`Cannot find the token '${parsed.etapiTokenId}'.`);
|
||||
}
|
||||
|
||||
etapiToken.markAsDeletedSimple();
|
||||
|
||||
Reference in New Issue
Block a user