2020-09-01 20:07:56 +08:00
|
|
|
import Logger from '/imports/startup/server/logger';
|
|
|
|
import AuthTokenValidation from '/imports/api/auth-token-validation';
|
|
|
|
|
2023-04-01 04:40:41 +08:00
|
|
|
export default async function removeValidationState(meetingId, userId, connectionId) {
|
2020-09-01 20:07:56 +08:00
|
|
|
const selector = {
|
|
|
|
meetingId, userId, connectionId,
|
|
|
|
};
|
|
|
|
|
2023-04-01 04:40:41 +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
|
|
|
}
|