mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-29 17:58:27 +00:00
api/service-alias: refactor
This commit is contained in:
parent
740a75851e
commit
97fb6e60a2
|
@ -1,10 +1,9 @@
|
|||
const friendlyNames = {
|
||||
bsky: "bluesky",
|
||||
}
|
||||
const friendlyKeys = Object.keys(friendlyNames);
|
||||
|
||||
export const friendlyServiceName = (service) => {
|
||||
if (service in friendlyKeys) {
|
||||
if (service in friendlyNames) {
|
||||
return friendlyNames[service];
|
||||
}
|
||||
return service;
|
||||
|
|
Loading…
Reference in a new issue