#pragma once

#include <maps/wikimap/ugc/libs/common/types.h>
#include <maps/libs/chrono/include/time_point.h>
#include <pqxx/pqxx>

namespace maps::wiki::ugc {

void finishTxn(
    pqxx::transaction_base& txn,
    bool dryRun);

pqxx::result updateAssignmentStatus(
    pqxx::transaction_base& txn,
    Uid uid,
    AssignmentStatus status,
    const AssignmentId& assignmentId,
    maps::chrono::TimePoint timePoint);

} // namespace maps::wiki::ugc
