Clean up examples/todoApp and updated env vars (#2165)

This commit is contained in:
Mihovil Ilakovac 2024-07-08 13:37:52 +02:00 committed by GitHub
parent 85dce3f153
commit c43e2e10e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 13 additions and 14 deletions

View File

@ -4,20 +4,20 @@
#/--------------------------------------------------/
# development
DOTENV_VAULT_DEVELOPMENT="Afog8ZPUwdbDvWg46qIdxHqzMghXgcbkYViEFXRj8gi2s2/AH/yiyNomjO/lmf2CjOF3f5wWr9ArQ+1BIbmmTI2c/Pgc1LNKp3NCzfeFv5MGlgVvUBIjJ9qsbdE5Iz8U8xNReUdb9s1u7Urye671rX3RhiL7UGvEl6OcO9vpzcqbMbGY6v3AyGR+DaKNjEY68iTyqjeC6flbPHIJ1GXEjK+k+R62jZEwcNGYBedo6vM9GQW6CWmWP9h4eVOxg+EUbdrUPFPnJ5gJisGgTP+/mjT9VQNbzkd+VKaXVsVunU9EJ1Ppnpvqno+u1GgBTFMxmX2HYgMOOAlvHuaJN6zWOohF2kKSIWmyzx7ratLuYx0wL7aCCG/IWuoul5OUBCFQcWaUyehJie7l0w4iIPKhchmPylQp+dawtl6QCeGO0f4OdnMQPQ8XqHi0knQtaC9UVniKJLQlop+8px54VBYBPOhFbjqVGmQrggwY5wF26p/sD63rmjFRGj11ZpqAo7XCqLM8OPrZAF2091XE7p+BCWHIyKfCHWNtPit4RpqKQkcOfZBYBRPnuwen1yB+sL+I4MSyZ4Sc+HQ2cEqY3y5nSWJ/UkkiH+5ghsBu53CbnwrLa/qysTAlvmS4UW+O8gleWFP+hm10Dta5VgbA6Mj6907/XqlFbizfOMhBSEfZJX7k4ujmOJXJ9A3ZMEeerfWyHubZPW5HGRt58MfLYTHZhSqjxrhOfc/0vQB1aRKqGM/qUO8U98uD6IplMBpXA8Lf8jrL3eqHfL5VscYVkJSgsZxA"
DOTENV_VAULT_DEVELOPMENT_VERSION=3
DOTENV_VAULT_DEVELOPMENT="zTQpOFte/UZDCwflf/M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fnSzGgCsAnE08Ncx+cZ8b/hSMkTpj2Dg8JNgB0J8r5osrU7vcJDeuC2aVEunf8broGSsewqqx4Evi0VKdOhJPmAJkfqOVpd5t3kHg9BPOAT9R/Q5f1IFj9KqKVtYXOMFSJX6CDgyXTM7otc8MK4VZDkWMLeR3zNH632gW+yQMGyG3hmEAIEbRqV6EpnpYvAMDK73oUgFOGEEZGzVcLPPYHFmsSeEjy2zZdgHxiH6GJy0251iThVBoWA=="
DOTENV_VAULT_PRODUCTION_VERSION=4
#/----------------settings/metadata-----------------/
DOTENV_VAULT="vlt_42e44a97f39aa7e0e5ca2c68a664443384c3307ba60fe8aa6e1e30a21662b2ff"

View File

@ -32,8 +32,3 @@ model TaskVote {
task Task @relation(fields: [taskId], references: [id])
taskId Int
}
enum Role {
USER
ADMIN
}

View File

@ -18,7 +18,11 @@ export function getName(user?: AuthUser) {
return `GitHub user ${user.identities.github.id}`
}
// if (user.identities.keycloak !== undefined) {
if (user.identities.discord !== null) {
return `Discord user ${user.identities.discord.id}`
}
// if (user.identities.keycloak !== null) {
// return `Keycloak user ${user.identities.keycloak.id}`
// }