core: use Content/Name/Title to replace String

This commit is contained in:
undefined committed 2021-04-08 20:58:08 +08:00
1 parent 05968798fe
commit 2814bb51b9
15 files changed
+126 -117

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ class CheckInHandler extends Handler {
}
class SwitchLanguageHandler extends Handler {
@param('lang', Types.String)
@param('lang', Types.Name)
async get(domainId: string, lang: string) {
if (this.user.hasPriv(PRIV.PRIV_USER_PROFILE)) {
this.session.viewLang = lang;