fix: type error
This commit is contained in:
parent
0fcff7207f
commit
c8fec5b0c7
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ class DeleteLearnHandler extends InteractionHandler {
|
||||||
public async run(interaction: StringSelectMenuInteraction) {
|
public async run(interaction: StringSelectMenuInteraction) {
|
||||||
await interaction.deferUpdate()
|
await interaction.deferUpdate()
|
||||||
|
|
||||||
const id = Number(interaction.values[0].slice(`${this._CUSTOM_ID}-`.length))
|
const id = interaction.values[0].slice(`${this._CUSTOM_ID}-`.length)
|
||||||
const db = this.container.database
|
const db = this.container.database
|
||||||
const decimalRegexp = /^[0-9]/g
|
const decimalRegexp = /^[0-9]/g
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ class DeleteLearnHandler extends InteractionHandler {
|
||||||
|
|
||||||
await db.learn.delete({
|
await db.learn.delete({
|
||||||
where: {
|
where: {
|
||||||
id,
|
id: Number(id),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue