Harden migrate session to prevent duplicate migration errors ()

This commit is contained in:
Firstyear 2023-05-06 22:56:52 +10:00 committed by GitHub
parent d22dc28698
commit d9b79ba6d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1195,4 +1195,9 @@ impl ValueSetT for ValueSetApiToken {
// This is what ties us as a type that can be refint checked.
Some(Box::new(self.map.keys().copied()))
}
fn migrate_session_to_apitoken(&self) -> Result<ValueSet, OperationError> {
// We are already in the api token format, don't do anything.
Ok(Box::new(self.clone()))
}
}