Skip to main content

get_by_file_upload_ids

Function get_by_file_upload_ids 

Source
pub async fn get_by_file_upload_ids(
    conn: &mut PgConnection,
    file_upload_ids: &[Uuid],
) -> ModelResult<Vec<AnswerUploadBinding>>
Expand description

The live bindings for the given uploaded files, in no particular order.

Unlike get_for_exercise_and_user this looks up by file rather than by owner, and reports the exercise and user each file was bound to.