Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashu11-A committed Mar 8, 2024
1 parent b36539a commit 5737226
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/classes/Pterodactyl.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { core, db } from '@/app'
import { numerosParaLetras, updateProgressAndEstimation } from '@/functions'
import { type PaymentServerPtero, type PaymentUserPtero, type EggObject, type NestObject, type NodeConfigObject, type NodeObject, type Server, type UserObject, PaymentMetadataPtero, UserPtero } from '@/interfaces'
import { type EggObject, type NestObject, type NodeConfigObject, type NodeObject, type PaymentMetadataPtero, type PaymentServerPtero, type PaymentUserPtero, type Server, type UserObject, type UserPtero } from '@/interfaces'
import axios, { type AxiosError, type AxiosInstance } from 'axios'

export class Pterodactyl {
Expand Down
4 changes: 2 additions & 2 deletions src/discord/components/payments/functions/createCart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ export async function createCart (interaction: ButtonInteraction<CacheType> | Ch
UUID: genv4(),
userID: client.id,
channelId: paymentChannel.id,
role,
typeEmbed: 0,
products: [
{
Expand All @@ -216,7 +215,8 @@ export async function createCart (interaction: ButtonInteraction<CacheType> | Ch
coins,
pterodactyl,
isIncremental,
isEphemeral
isEphemeral,
role
}
]
})
Expand Down
5 changes: 3 additions & 2 deletions src/interfaces/Payments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export interface ProductCartData {
isEphemeral: boolean
// Apenas para não dar problema na criação do ephemeral
properties?: undefined
role?: undefined
role?: string
//
coins?: number
messageId?: string
Expand Down Expand Up @@ -94,7 +94,8 @@ export interface PaymentUserCTRL {

export interface UserPtero {
id: number
username: string
name?: string // only Local Database
username?: string
email: string
root_admin: boolean
}
Expand Down

0 comments on commit 5737226

Please sign in to comment.