2020-09-01 20:07:56 +08:00
|
|
|
import Logger from '/imports/startup/server/logger';
|
|
|
|
import AuthTokenValidation from '/imports/api/auth-token-validation';
|
|
|
|
|
2023-03-16 20:19:53 +08:00
|
|
|
export default async function removeValidationState(meetingId, userId, connectionId) {
|
2020-09-01 20:07:56 +08:00
|
|
|
const selector = {
|
|
|
|
meetingId, userId, connectionId,
|
|
|
|
};
|
|
|
|
|
2023-03-16 20:19:53 +08:00
|
|
|
try {
|
|
|
|
await AuthTokenValidation.removeAsync(selector);
|
|
|
|
} catch (error) {
|
|
|
|
Logger.error(`Could not remove from collection AuthTokenValidation: ${error}`);
|
|
|
|
}
|
2020-09-01 20:07:56 +08:00
|
|
|
}
|