commit 03/09/2025
This commit is contained in:
@@ -1157,7 +1157,7 @@ class MariaDB(
|
||||
* Exports the messagebank table to an XLSX workbook.
|
||||
* @return An XSSFWorkbook containing the messagebank data.
|
||||
*/
|
||||
fun Export_Messagebank_XLSX(): XSSFWorkbook {
|
||||
fun Export_Messagebank_XLSX(): XSSFWorkbook? {
|
||||
try {
|
||||
val statement = connection?.createStatement()
|
||||
val resultSet = statement?.executeQuery("SELECT * FROM messagebank")
|
||||
@@ -1188,7 +1188,7 @@ class MariaDB(
|
||||
} catch (e: Exception) {
|
||||
Logger.error { "Error exporting Messagebank, Msg: ${e.message}" }
|
||||
}
|
||||
return XSSFWorkbook()
|
||||
return null
|
||||
}
|
||||
|
||||
fun Import_Messagebank_XLSX(workbook: XSSFWorkbook): Boolean {
|
||||
|
||||
Reference in New Issue
Block a user