fix: type error

This commit is contained in:
Siwoo Jeon 2024-10-06 15:54:35 +09:00
parent 0fcff7207f
commit c8fec5b0c7
Signed by: migan
GPG key ID: 036E9A8C5E8E48DA

View file

@ -28,7 +28,7 @@ class DeleteLearnHandler extends InteractionHandler {
public async run(interaction: StringSelectMenuInteraction) {
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 decimalRegexp = /^[0-9]/g
@ -50,7 +50,7 @@ class DeleteLearnHandler extends InteractionHandler {
await db.learn.delete({
where: {
id,
id: Number(id),
},
})