step 5 : add comp longi & lati, check distance gql, trans clock in gql

This commit is contained in:
sindhu
2024-01-22 15:11:44 +07:00
parent c62764165d
commit ba1f43ae70
12 changed files with 548 additions and 697 deletions

View File

@@ -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
}