Skip to content

Commit

Permalink
Corrigir erros ao tentar salvar os attachments e mensagens editadas
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPowerGamerBR committed Oct 12, 2018
1 parent 4f39c94 commit 3bca777
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -105,8 +105,6 @@ object EventLog {
storedMessage.content = message.contentRaw
}
}

loritta save storedMessage
}
}
} catch (e: Exception) {
Expand Down
Expand Up @@ -19,9 +19,13 @@ class ArrayColumnType(private val type: ColumnType) : ColumnType() {
}
}
override fun valueFromDB(value: Any): Any {
println(value)
if (value is java.sql.Array) {
return value.array
}
if (value is Array<*>) {
return value
}
error("Array does not support for this database")
}
}
Expand Down

0 comments on commit 3bca777

Please sign in to comment.