Store Google profile picture bytes on google_auth
This commit is contained in:
@@ -268,6 +268,7 @@ const MENU = {
|
||||
items: [
|
||||
{ value: 'google_auth.add', label: 'add', hint: 'email → id' },
|
||||
{ value: 'google_auth.getByEmail', label: 'getByEmail', hint: 'email → row' },
|
||||
{ value: 'google_auth.getById', label: 'getById', hint: 'googleAuthId → row' },
|
||||
{ value: 'google_auth.listAllowedEmails', label: 'listAllowedEmails', hint: '→ rows' },
|
||||
{ value: 'google_auth.removeAllowedEmail', label: 'removeAllowedEmail', hint: 'email' },
|
||||
{ value: 'google_auth.setSelectedCompany', label: 'setSelectedCompany', hint: 'googleAuthId, companyId' },
|
||||
@@ -1106,6 +1107,11 @@ async function runMethod(client, action) {
|
||||
if (email == null) return;
|
||||
return ['row', await client.google_auth.getByEmail(email)];
|
||||
}
|
||||
case 'google_auth.getById': {
|
||||
const id = await askInt('Auth id');
|
||||
if (id == null) return;
|
||||
return ['row', await client.google_auth.getById(Number(id))];
|
||||
}
|
||||
case 'google_auth.listAllowedEmails': {
|
||||
return ['rows', await client.google_auth.listAllowedEmails()];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user