mirror of
https://github.com/HeyPuter/puter
synced 2024-11-15 06:15:47 +00:00
Merge pull request #400 from AtkinsSJ/fix-apierror-includes
fix: Correct APIError imports
This commit is contained in:
commit
6e0b6d84d2
@ -16,7 +16,7 @@
|
|||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
const { APIError } = require('../../api/APIError');
|
const APIError = require('../../api/APIError');
|
||||||
|
|
||||||
module.exports = class FlagParam {
|
module.exports = class FlagParam {
|
||||||
constructor (srckey, options) {
|
constructor (srckey, options) {
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
const { APIError } = require('../../api/APIError');
|
const APIError = require('../../api/APIError');
|
||||||
|
|
||||||
module.exports = class StringParam {
|
module.exports = class StringParam {
|
||||||
constructor (srckey, options) {
|
constructor (srckey, options) {
|
||||||
|
@ -20,7 +20,7 @@ const { stream_to_buffer } = require("../../util/streamutil");
|
|||||||
const { HLFilesystemOperation } = require("./definitions");
|
const { HLFilesystemOperation } = require("./definitions");
|
||||||
const { chkperm } = require('../../helpers');
|
const { chkperm } = require('../../helpers');
|
||||||
const { LLRead } = require('../ll_operations/ll_read');
|
const { LLRead } = require('../ll_operations/ll_read');
|
||||||
const { APIError } = require('../../api/APIError');
|
const APIError = require('../../api/APIError');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* HLDataRead reads a stream of objects from a file containing structured data.
|
* HLDataRead reads a stream of objects from a file containing structured data.
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
const { chkperm } = require("../../helpers");
|
const { chkperm } = require("../../helpers");
|
||||||
const { Context } = require("../../util/context");
|
const { Context } = require("../../util/context");
|
||||||
const { HLFilesystemOperation } = require("./definitions");
|
const { HLFilesystemOperation } = require("./definitions");
|
||||||
const { APIError } = require('../../api/APIError');
|
const APIError = require('../../api/APIError');
|
||||||
|
|
||||||
class HLStat extends HLFilesystemOperation {
|
class HLStat extends HLFilesystemOperation {
|
||||||
static MODULES = {
|
static MODULES = {
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
const { Context } = require("../../util/context");
|
const { Context } = require("../../util/context");
|
||||||
const { ParallelTasks } = require("../../util/otelutil");
|
const { ParallelTasks } = require("../../util/otelutil");
|
||||||
const { LLFilesystemOperation } = require("./definitions");
|
const { LLFilesystemOperation } = require("./definitions");
|
||||||
const { APIError } = require("../../api/APIError");
|
const APIError = require("../../api/APIError");
|
||||||
|
|
||||||
class LLRmNode extends LLFilesystemOperation {
|
class LLRmNode extends LLFilesystemOperation {
|
||||||
async _run () {
|
async _run () {
|
||||||
|
@ -21,7 +21,7 @@ const { get_app, get_user } = require("../../helpers");
|
|||||||
const { UserActorType } = require("../../services/auth/Actor");
|
const { UserActorType } = require("../../services/auth/Actor");
|
||||||
const { DB_READ } = require("../../services/database/consts");
|
const { DB_READ } = require("../../services/database/consts");
|
||||||
const { Context } = require("../../util/context");
|
const { Context } = require("../../util/context");
|
||||||
const { APIError } = require('../../api/APIError');
|
const APIError = require('../../api/APIError');
|
||||||
|
|
||||||
module.exports = eggspress('/auth/list-permissions', {
|
module.exports = eggspress('/auth/list-permissions', {
|
||||||
subdomain: 'api',
|
subdomain: 'api',
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
const eggspress = require("../../api/eggspress");
|
const eggspress = require("../../api/eggspress");
|
||||||
const { UserActorType } = require("../../services/auth/Actor");
|
const { UserActorType } = require("../../services/auth/Actor");
|
||||||
const { Context } = require("../../util/context");
|
const { Context } = require("../../util/context");
|
||||||
const { APIError } = require('../../api/APIError');
|
const APIError = require('../../api/APIError');
|
||||||
|
|
||||||
module.exports = eggspress('/auth/list-sessions', {
|
module.exports = eggspress('/auth/list-sessions', {
|
||||||
subdomain: 'api',
|
subdomain: 'api',
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
const eggspress = require("../../api/eggspress");
|
const eggspress = require("../../api/eggspress");
|
||||||
const { UserActorType } = require("../../services/auth/Actor");
|
const { UserActorType } = require("../../services/auth/Actor");
|
||||||
const { Context } = require("../../util/context");
|
const { Context } = require("../../util/context");
|
||||||
const { APIError } = require('../../api/APIError');
|
const APIError = require('../../api/APIError');
|
||||||
|
|
||||||
module.exports = eggspress('/auth/revoke-user-app', {
|
module.exports = eggspress('/auth/revoke-user-app', {
|
||||||
subdomain: 'api',
|
subdomain: 'api',
|
||||||
|
Loading…
Reference in New Issue
Block a user