Fix inverted condition for Authorization and update expected JSON body #16

Merged
jacob1123 merged 2 commits from minor-fixes into master 2022-02-23 22:56:05 +01:00
3 changed files with 3 additions and 4 deletions

View File

@ -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
} }

View File

@ -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);

View File

@ -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,