bigbluebutton-Github/bigbluebutton-html5/imports/api/auth-token-validation/server/modifiers/removeValidationState.js
2023-03-20 16:37:36 -03:00

15 lines
446 B
JavaScript

import Logger from '/imports/startup/server/logger';
import AuthTokenValidation from '/imports/api/auth-token-validation';
export default async function removeValidationState(meetingId, userId, connectionId) {
const selector = {
meetingId, userId, connectionId,
};
try {
await AuthTokenValidation.removeAsync(selector);
} catch (error) {
Logger.error(`Could not remove from collection AuthTokenValidation: ${error}`);
}
}