Skip to content

Commit

Permalink
feat: allow old names until after migration
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAlexLichter committed May 2, 2024
1 parent a787fd3 commit b17b25f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/shared/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,19 @@ export const URLS: {
STATUS: Record<ServerName, string>
} = {
STATUS: {
west: 'http://serverstatus.albiononline.com/',
was: 'http://serverstatus.albiononline.com/',
east: 'http://serverstatus-sgp.albiononline.com/',
sgp: 'http://serverstatus-sgp.albiononline.com/',
ams: 'http://serverstatus-sgp.albiononline.com/'
},
}

export const SERVER_TO_DB: Record<ServerName, string> = {
was: 'server_west',
west: 'server_west',
sgp: 'server_east',
east: 'server_east',
ams: 'server_ams',
}

Expand Down
3 changes: 2 additions & 1 deletion packages/shared/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export const SERVER_NAMES = ['sgp', 'ams', 'was'] as const
// TODO: REMOVE OLD NAMES
export const SERVER_NAMES = ['sgp', 'ams', 'was', 'east', 'west'] as const
export type ServerName = typeof SERVER_NAMES[number]

export type StatusType = 'online' | 'offline' | 'starting' | 'unknown'
Expand Down

0 comments on commit b17b25f

Please sign in to comment.