You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -58,6 +63,15 @@ class AcceptSerialRequestButton: PermanentDiscordButton("vz_accept_serial", Disc
58
63
}
59
64
}
60
65
66
+
GlobalScope.async {
67
+
val coordinates = ticket.country?.randomCoordinates() ?:return@async
68
+
69
+
transaction {
70
+
serialNumber.latitude = coordinates.first
71
+
serialNumber.longitude = coordinates.second
72
+
}
73
+
}
74
+
61
75
transaction {
62
76
ticket.open =false
63
77
ticket.accepted =true
@@ -68,27 +82,23 @@ class AcceptSerialRequestButton: PermanentDiscordButton("vz_accept_serial", Disc
68
82
69
83
val channel = actionSender.textChannel
70
84
71
-
val serialID = serialNumber.id.value
85
+
val serialID =transaction { serialNumber.id.value }
72
86
73
87
val embed = prettyEmbed("Application Accepted", "**Congratulations**. Your application has been accepted and you have been granted your new serial id. In the following messages, we will send you the files to print your serial badge. Welcome to the **VZParty!** Feel free to delete your ticket, when you have grabbed your filed.", Color.GREEN)
val announcementEmbed = prettyEmbed("New Serial! #$serialID", "The user ${ticketOwner.effectiveName} has just finished their $printer. Spread some VZLove!", Color.GREEN)
0 commit comments