Exemple #1
0
def delete_message(db_message: DBMessage) -> DBMessage:
    try:
        db_message.is_delete = True
    except AttributeError:
        raise DBMessageNotExistsException
    return db_message
Exemple #2
0
def delete_message(db_message: DBMessage) -> DBMessage:
    db_message.is_delete = True
    return db_message