fix error and linting (#1888)

* fix: build

* fix: linting

* fix: cast type
This commit is contained in:
Jefferson Felix
2025-10-08 03:27:43 -03:00
committed by GitHub
parent c41aae78c2
commit a3ec28e051
4 changed files with 16 additions and 7 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ export type FullJid = JidWithDevice & {
}
export const getServerFromDomainType = (initialServer: string, domainType?: WAJIDDomains): JidServer => {
switch(domainType) {
switch (domainType) {
case WAJIDDomains.LID:
return 'lid'
case WAJIDDomains.HOSTED:
@@ -44,7 +44,7 @@ export const getServerFromDomainType = (initialServer: string, domainType?: WAJI
return 'hosted.lid'
case WAJIDDomains.WHATSAPP:
default:
return initialServer
return initialServer as JidServer
}
}