mirror of
https://github.com/unraid/api.git
synced 2026-01-04 23:50:37 -06:00
fix: build issues based on removed code
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
export * as modules from '@app/core/modules';
|
||||
export * as notifiers from '@app/core/notifiers';
|
||||
export * as utils from '@app/core/utils';
|
||||
export * from '@app/core/bus';
|
||||
export * from '@app/core/log';
|
||||
export * from '@app/core/permission-manager';
|
||||
export * from '@app/core/permissions';
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import type { CoreContext, CoreResult } from '@app/core/types';
|
||||
import { bus } from '@app/core/bus';
|
||||
import { AppError } from '@app/core/errors/app-error';
|
||||
import { ensurePermission } from '@app/core/utils/permissions/ensure-permission';
|
||||
import { hasFields } from '@app/core/utils/validation/has-fields';
|
||||
import { FieldMissingError } from '@app/core/errors/field-missing-error';
|
||||
import { emcmd } from '@app/core/utils/clients/emcmd';
|
||||
import { getters } from '@app/store';
|
||||
import { pubsub } from '@app/core/pubsub';
|
||||
|
||||
interface Context extends CoreContext {
|
||||
readonly data: {
|
||||
@@ -61,7 +61,7 @@ export const addUser = async (context: Context): Promise<CoreResult> => {
|
||||
}
|
||||
|
||||
// Update users channel with new user
|
||||
bus.emit('users', {
|
||||
pubsub.publish('users', {
|
||||
users: {
|
||||
mutation: 'CREATED',
|
||||
node: [user],
|
||||
@@ -69,7 +69,7 @@ export const addUser = async (context: Context): Promise<CoreResult> => {
|
||||
});
|
||||
|
||||
// Update user channel with new user
|
||||
bus.emit('user', {
|
||||
pubsub.publish('user', {
|
||||
user: {
|
||||
mutation: 'CREATED',
|
||||
node: user,
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// Created from 'create-ts-index'
|
||||
|
||||
export * from './array';
|
||||
export * from './authentication';
|
||||
export * from './clients';
|
||||
export * from './plugins';
|
||||
export * from './shares';
|
||||
|
||||
Reference in New Issue
Block a user