Skip to content

Commit

Permalink
Correct name of "Bag of Holding"
Browse files Browse the repository at this point in the history
  • Loading branch information
rotu authored and patrickelectric committed Nov 18, 2024
1 parent ae544c8 commit 859af9f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 deletions core/frontend/src/store/bag.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import { StatusCodes } from 'http-status-codes'

import Notifier from '@/libs/notifier'
import { bag_of_holders_service } from '@/types/frontend_services'
import { bag_of_holding_service } from '@/types/frontend_services'
import back_axios, { backend_offline_error } from '@/utils/api'

const notifier = new Notifier(bag_of_holders_service)
const notifier = new Notifier(bag_of_holding_service)

class BagOfHoldersStore {
class BagOfHoldingStore {
API_URL = '/bag/v1.0'

private static instance: BagOfHoldersStore
private static instance: BagOfHoldingStore

public static getInstance(): BagOfHoldersStore {
if (!BagOfHoldersStore.instance) {
BagOfHoldersStore.instance = new BagOfHoldersStore()
public static getInstance(): BagOfHoldingStore {
if (!BagOfHoldingStore.instance) {
BagOfHoldingStore.instance = new BagOfHoldingStore()
}
return BagOfHoldersStore.instance
return BagOfHoldingStore.instance
}

async overwrite(payload: Record<string, unknown>): Promise<boolean> {
Expand All @@ -31,7 +31,7 @@ class BagOfHoldersStore {
return false
}
const message = `Could not overwrite database: ${error.message ?? error.response?.data}.`
notifier.pushError('BAG_OF_HOLDERS_SET_DATA_FAIL', message, true)
notifier.pushError('BAG_OF_HOLDING_SET_DATA_FAIL', message, true)
return false
})
}
Expand All @@ -49,7 +49,7 @@ class BagOfHoldersStore {
return false
}
const message = `Could not set data: ${error.message ?? error.response?.data}.`
notifier.pushError('BAG_OF_HOLDERS_SET_DATA_FAIL', message, true)
notifier.pushError('BAG_OF_HOLDING_SET_DATA_FAIL', message, true)
return false
})
}
Expand All @@ -74,11 +74,11 @@ class BagOfHoldersStore {
return undefined
}
const message = `Could not get (${path}) data: ${error.response?.data ?? error.message}.`
notifier.pushError('BAG_OF_HOLDERS_GET_DATA_FAIL', message, true)
notifier.pushError('BAG_OF_HOLDING_GET_DATA_FAIL', message, true)
return undefined
})
}
}

const bag = BagOfHoldersStore.getInstance()
const bag = BagOfHoldingStore.getInstance()
export default bag
4 changes: 2 additions & 2 deletions core/frontend/src/types/frontend_services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ export const parameters_service: Service = {
version: '0.1.0',
}

export const bag_of_holders_service: Service = {
name: 'Bag Of Holders',
export const bag_of_holding_service: Service = {
name: 'Bag Of Holding',
description: 'Service to manage json database for the vehicle',
company: 'Blue Robotics',
version: '0.1.0',
Expand Down

0 comments on commit 859af9f

Please sign in to comment.