step 5 : add comp longi & lati, check distance gql, trans clock in gql
This commit is contained in:
@@ -64,7 +64,7 @@ func Middleware() func(http.Handler) http.Handler {
|
||||
}
|
||||
|
||||
// ForContext finds the user from the context. REQUIRES Middleware to have run.
|
||||
func ForContext(ctx context.Context) *model.User {
|
||||
raw, _ := ctx.Value(userCtxKey).(*model.User)
|
||||
func ForContext(ctx context.Context) *model.Staff {
|
||||
raw, _ := ctx.Value(userCtxKey).(*model.Staff)
|
||||
return raw
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user