Fix inverted condition for Authorization and update expected JSON body #16
@ -19,7 +19,7 @@ const (
|
|||||||
|
|
||||||
func MustGetToken(c *gin.Context) budgeteer.Token { //nolint:ireturn
|
func MustGetToken(c *gin.Context) budgeteer.Token { //nolint:ireturn
|
||||||
token := c.MustGet(ParamName)
|
token := c.MustGet(ParamName)
|
||||||
if token, ok := token.(budgeteer.Token); !ok {
|
if token, ok := token.(budgeteer.Token); ok {
|
||||||
return token
|
return token
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,7 +48,6 @@ function load(text: String) {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
function keypress(e: KeyboardEvent) {
|
function keypress(e: KeyboardEvent) {
|
||||||
console.log(e.key);
|
|
||||||
if (e.key == "Enter") {
|
if (e.key == "Enter") {
|
||||||
const selected = Suggestions.value[0];
|
const selected = Suggestions.value[0];
|
||||||
selectElement(selected);
|
selectElement(selected);
|
||||||
|
@ -15,8 +15,8 @@ const Memo = ref("");
|
|||||||
const Amount = ref("0");
|
const Amount = ref("0");
|
||||||
|
|
||||||
const payload = computed(() => JSON.stringify({
|
const payload = computed(() => JSON.stringify({
|
||||||
budget_id: props.budgetid,
|
budgetId: props.budgetid,
|
||||||
account_id: props.accountid,
|
accountId: props.accountid,
|
||||||
date: TransactionDate.value,
|
date: TransactionDate.value,
|
||||||
payee: Payee.value,
|
payee: Payee.value,
|
||||||
category: Category.value,
|
category: Category.value,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user