@@ -1310,7 +1310,10 @@ func templateHelpers(options *coderd.Options) map[string]any {
1310
1310
"base_url" :func ()string {return options .AccessURL .String () },
1311
1311
"current_year" :func ()string {return strconv .Itoa (time .Now ().Year ()) },
1312
1312
"logo_url" :func ()string {
1313
- logoURL ,err := options .Database .GetLogoURL (context .Background ())
1313
+ ctx ,cancel := context .WithTimeout (context .Background (),1 * time .Second )
1314
+ defer cancel ()
1315
+
1316
+ logoURL ,err := options .Database .GetLogoURL (ctx )
1314
1317
if err != nil {
1315
1318
if errors .Is (err ,sql .ErrNoRows ) {
1316
1319
return notifications .NotificationsDefaultLogoURL
@@ -1322,7 +1325,10 @@ func templateHelpers(options *coderd.Options) map[string]any {
1322
1325
return logoURL
1323
1326
},
1324
1327
"app_name" :func ()string {
1325
- appName ,err := options .Database .GetApplicationName (context .Background ())
1328
+ ctx ,cancel := context .WithTimeout (context .Background (),1 * time .Second )
1329
+ defer cancel ()
1330
+
1331
+ appName ,err := options .Database .GetApplicationName (ctx )
1326
1332
if err != nil {
1327
1333
if errors .Is (err ,sql .ErrNoRows ) {
1328
1334
return notifications .NotificationsDefaultAppName