unlock method
If the request did not succeed, unlock for subsequent processing
Implementation
Future<int?> unlock(Database db) async {
return await db.transaction((txn) async {
final response = await findRequestInDatabase(txn);
if (response == null) return null;
return await unlockRequest(
data: response,
db: txn,
lockedColumn: lockedColumn,
primaryKeyColumn: primaryKeyColumn,
tableName: tableName,
);
});
}