const updateSubscription = client.models.Users.onUpdate().subscribe({
next: (payload) => Runtime.runFork(serviceRuntime, handleUserUpdate(payload)),
error: (error) => Runtime.runFork(serviceRuntime, Effect.logError(error))
});
const updateSubscription = client.models.Users.onUpdate().subscribe({
next: (payload) => Runtime.runFork(serviceRuntime, handleUserUpdate(payload)),
error: (error) => Runtime.runFork(serviceRuntime, Effect.logError(error))
});