changes
parent
ca6e20fa0b
commit
ab88fcfd58
|
@ -62,6 +62,7 @@ export default async function checkLock(client: Client) {
|
|||
await start();
|
||||
interval = setInterval(async () => {
|
||||
await start();
|
||||
}, 10000);
|
||||
// 1.2 minutes
|
||||
}, 72000);
|
||||
return interval;
|
||||
}
|
||||
|
|
|
@ -161,7 +161,7 @@ export default async function departmentPager(client: Client): Promise<NodeJS.Ti
|
|||
await client.util.authClient.createUser({
|
||||
email: acknowledgement.emailAddress,
|
||||
name: member.username,
|
||||
user_id: `auth0|${member.id}`,
|
||||
user_id: `${member.id}`,
|
||||
connection: 'Staff-Database',
|
||||
email_verified: true,
|
||||
app_metadata: {
|
||||
|
@ -206,7 +206,7 @@ export default async function departmentPager(client: Client): Promise<NodeJS.Ti
|
|||
await client.util.authClient.createUser({
|
||||
email: acknowledgement.emailAddress,
|
||||
name: member.username,
|
||||
user_id: `auth0|${member.id}`,
|
||||
user_id: `${member.id}`,
|
||||
connection: 'Staff-Database',
|
||||
email_verified: true,
|
||||
app_metadata: {
|
||||
|
@ -252,7 +252,7 @@ export default async function departmentPager(client: Client): Promise<NodeJS.Ti
|
|||
await client.util.authClient.createUser({
|
||||
email: acknowledgement.emailAddress,
|
||||
name: member.username,
|
||||
user_id: `auth0|${member.id}`,
|
||||
user_id: `${member.id}`,
|
||||
connection: 'Staff-Database',
|
||||
email_verified: true,
|
||||
app_metadata: {
|
||||
|
@ -298,7 +298,7 @@ export default async function departmentPager(client: Client): Promise<NodeJS.Ti
|
|||
await client.util.authClient.createUser({
|
||||
email: acknowledgement.emailAddress,
|
||||
name: member.username,
|
||||
user_id: `auth0|${member.id}`,
|
||||
user_id: `${member.id}`,
|
||||
connection: 'Staff-Database',
|
||||
email_verified: true,
|
||||
app_metadata: {
|
||||
|
@ -344,7 +344,7 @@ export default async function departmentPager(client: Client): Promise<NodeJS.Ti
|
|||
await client.util.authClient.createUser({
|
||||
email: acknowledgement.emailAddress,
|
||||
name: member.username,
|
||||
user_id: `auth0|${member.id}`,
|
||||
user_id: `${member.id}`,
|
||||
connection: 'Staff-Database',
|
||||
email_verified: true,
|
||||
app_metadata: {
|
||||
|
@ -390,7 +390,7 @@ export default async function departmentPager(client: Client): Promise<NodeJS.Ti
|
|||
await client.util.authClient.createUser({
|
||||
email: acknowledgement.emailAddress,
|
||||
name: member.username,
|
||||
user_id: `auth0|${member.id}`,
|
||||
user_id: `${member.id}`,
|
||||
connection: 'Staff-Database',
|
||||
email_verified: true,
|
||||
app_metadata: {
|
||||
|
@ -503,6 +503,7 @@ export default async function departmentPager(client: Client): Promise<NodeJS.Ti
|
|||
client.util.signale.time('pagerint');
|
||||
await start(client);
|
||||
client.util.signale.timeEnd('pagerint');
|
||||
}, 300000);
|
||||
// 30 minutes
|
||||
}, 60000 * 30);
|
||||
return interval;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue