lint: const fixes
This commit is contained in:
@@ -184,7 +184,7 @@ async function revokeByUserId(userId) {
|
||||
function revokeObjects(modelName) {
|
||||
load(modelName);
|
||||
|
||||
for (let id in DATA_STORE[modelName]) {
|
||||
for (const id in DATA_STORE[modelName]) {
|
||||
if (DATA_STORE[modelName][id].payload?.accountId === userId) delete DATA_STORE[modelName][id];
|
||||
}
|
||||
|
||||
@@ -379,7 +379,7 @@ class CloudronAdapter {
|
||||
if (this.name === 'Client' || this.name === 'AccessToken') {
|
||||
debug('findByUid: this should not happen as it is stored in our db');
|
||||
} else {
|
||||
for (let d in DATA_STORE[this.name]) {
|
||||
for (const d in DATA_STORE[this.name]) {
|
||||
if (DATA_STORE[this.name][d].payload.uid === uid) return DATA_STORE[this.name][d].payload;
|
||||
}
|
||||
|
||||
@@ -446,7 +446,7 @@ class CloudronAdapter {
|
||||
if (this.name === 'Client') {
|
||||
debug('revokeByGrantId: this should not happen as it is stored in our db');
|
||||
} else {
|
||||
for (let d in DATA_STORE[this.name]) {
|
||||
for (const d in DATA_STORE[this.name]) {
|
||||
if (DATA_STORE[this.name][d].grantId === grantId) {
|
||||
delete DATA_STORE[this.name][d];
|
||||
return save(this.name);
|
||||
|
||||
Reference in New Issue
Block a user